public function testWhereArraySize()
{
$this->collection->createDocument(array('param' => array()))->save();
$this->collection->createDocument(array('param' => array('value1')))->save();
$documentId = $this->collection->createDocument(array('param' => array('value1', 'value2')))->save()->getId();
$this->collection->createDocument(array('param' => array('value1', 'value2', 'value3')))->save();
// find all rows
$document = $this->collection->find()->whereArraySize('param', 2)->findOne();
$this->assertNotEmpty($document);
$this->assertEquals($documentId, $document->getId());
}