public function testPersist(Persistence $persistence)
{
$document = $this->collection->createDocument(array('param' => 'value'));
$this->assertFalse($persistence->contains($document));
// add document
$persistence->persist($document);
// check if document in persistence
$this->assertTrue($persistence->contains($document));
}