/**
  * @return mixed
  */
 public function getResult()
 {
     $query = $this->getQuery();
     if ($this->payload->get('count') !== null && $this->payload->get('count')->getValue()) {
         return $query->getSingleScalarResult();
     }
     return $query->getResult();
 }
 /**
  * @param Payload $payload
  * @depends testCompletePayload
  */
 public function testOffsetValue(Payload $payload)
 {
     $offset = $payload->get('offset')->getValue();
     $this->assertEquals(10, $offset);
 }