public function createDocumentManager()
{
$couchDBClient = $this->createCouchDBClient();
$httpClient = $couchDBClient->getHttpClient();
$database = $couchDBClient->getDatabase();
$httpClient->request('DELETE', '/' . $database);
$resp = $httpClient->request('PUT', '/' . $database);
$reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();
$reader->addNamespace('Doctrine\\ODM\\CouchDB\\Mapping\\Annotations');
$paths = __DIR__ . "/../../Models";
$metaDriver = new AnnotationDriver($reader, $paths);
$config = $this->createConfiguration($metaDriver);
return DocumentManager::create($couchDBClient, $config);
}