public function testGetDocument_ConfigureCursor_getAsArray()
{
$document = $this->collection->createDocument(array('param' => 'value'))->save();
$this->assertTrue($this->collection->isDocumentInDocumentPool($document));
// get document with wrong param
$this->assertEquals(array('param' => 'value'), $this->collection->getDocument($document->getId(), function ($cursor) {
$cursor->asArray()->skipField('_id');
}));
}