public function setUp()
{
$this->type = 'Doctrine\\Tests\\ODM\\CouchDB\\Functional\\User';
$this->dm = $this->createDocumentManager();
$httpClient = $this->dm->getHttpClient();
$data = json_encode(array('_id' => "1", 'username' => 'lsmith', 'type' => $this->type));
$resp = $httpClient->request('PUT', '/' . $this->dm->getDatabase() . '/1', $data);
$this->assertEquals(201, $resp->status);
}