public function testNewInstanceFromConfiguration()
{
$config = new \Doctrine\ODM\CouchDB\Configuration();
$httpClient = new \Doctrine\CouchDB\HTTP\SocketClient();
$couchClient = new \Doctrine\CouchDB\CouchDBClient($httpClient, "test");
$dm = \Doctrine\ODM\CouchDB\DocumentManager::create($couchClient, $config);
$this->assertInstanceOf('Doctrine\\ODM\\CouchDB\\DocumentManager', $dm);
$this->assertSame($config, $dm->getConfiguration());
$this->assertSame($httpClient, $dm->getHttpClient());
$this->assertEquals("test", $dm->getDatabase());
}