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 testGetPropertyId()
 {
     $query = new QuantityQuery(new PropertyId('P42'), new DecimalValue('+42'));
     $this->assertEquals(new PropertyId('P42'), $query->getPropertyId());
 }