private function getSerialized(BetweenQuery $query)
 {
     $text = 'between[' . $query->getPropertyId()->getNumericId() . ',';
     if ($query->getBeginValue() !== null) {
         $text .= $query->getBeginValue()->getTime();
     }
     if ($query->getEndValue() !== null) {
         $text .= ',' . $query->getEndValue()->getTime();
     }
     return $text . ']';
 }
 public function testGetType()
 {
     $query = new BetweenQuery(new PropertyId('P42'));
     $this->assertEquals('between', $query->getType());
 }