private function getSerialized(QuantityQuery $query)
 {
     $text = 'quantity[' . $query->getPropertyId()->getNumericId() . ',';
     if ($query->getLowerValue() !== null) {
         $text .= $query->getLowerValue()->getValue();
     }
     if ($query->getUpperValue() !== null) {
         $text .= ',' . $query->getUpperValue()->getValue();
     }
     return $text . ']';
 }
 public function testGetType()
 {
     $query = new QuantityQuery(new PropertyId('P42'), new DecimalValue('+42'));
     $this->assertEquals('quantity', $query->getType());
 }