public function setUp()
{
$this->type = 'Doctrine\\Tests\\Models\\Embedded\\Embedder';
$this->embeddedType = 'Doctrine\\Tests\\Models\\Embedded\\Embedded';
$this->nestedType = 'Doctrine\\Tests\\Models\\Embedded\\Nested';
$this->dm = $this->createDocumentManager();
$httpClient = $this->dm->getHttpClient();
$data = json_encode(array('_id' => "1", 'embedded' => array('name' => 'embedded one', 'embeds' => array(array('nestedName' => 'nested one', 'type' => $this->nestedType), array('nestedName' => 'nested two', 'type' => $this->nestedType)), 'type' => $this->embeddedType), 'type' => $this->type));
$resp = $httpClient->request('PUT', '/' . $this->dm->getDatabase() . '/1', $data);
$this->assertEquals(201, $resp->status);
}