public function testGetOneOrNullResult_withOneResult()
{
$this->phpcrQuery->expects($this->once())->method('execute')->will($this->returnValue(array('ok1')));
$res = $this->query->getOneOrNullResult(Query::HYDRATE_PHPCR);
$this->assertEquals('ok1', $res);
}