public function testSetObject()
{
$obj = new \stdclass();
$obj->param = 'value';
// save
$document = $this->collection->createDocument()->set('d', $obj)->save();
$this->assertEquals((array) $obj, $document->d);
$this->assertEquals((array) $obj, $this->collection->getDocumentDirectly($document->getId())->d);
}