QuantityValueImpl extends ValueImpl implements QuantityValue { @JsonIgnore @Override public ItemIdValue getUnitItemId() { String unit = this.value.getUnit(); if(unit.equals("1")) { return null; } else { return ItemIdValueImpl.fromIri(unit); } } QuantityValueImpl(
			BigDecimal numericValue,
			BigDecimal lowerBound,
			BigDecimal upperBound,
			String unit); @JsonCreator  QuantityValueImpl(
			@JsonProperty("value") JacksonInnerQuantity value); JacksonInnerQuantity getValue(); @JsonIgnore @Override BigDecimal getNumericValue(); @JsonIgnore @Override BigDecimal getLowerBound(); @JsonIgnore @Override BigDecimal getUpperBound(); @JsonIgnore @Override String getUnit(); @JsonIgnore @Override ItemIdValue getUnitItemId(); @Override T accept(ValueVisitor<T> valueVisitor); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void getUnitItemId() { assertEquals(new ItemIdValueImpl("Q11573", "http: }
@Test public void getUnitItemIdNoUnit() { assertNull(q4.getUnitItemId()); }
@Test(expected = IllegalArgumentException.class) public void getUnitItemIdInvalidIri() { q5.getUnitItemId(); }