SimpleLength implements Length { @Override public String toString() { return this.getValue(); } SimpleLength(final double value, final Unit unit); static SimpleLength mm(final double value); static SimpleLength cm(final double value); static SimpleLength in(final double value); static SimpleLength pt(final double value); static SimpleLength pc(final double value); static SimpleLength em(final double value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override String getValue(); @Override boolean isNotNull();  }
@Test public void testToString() { Assert.assertEquals("11pt", SimpleLength.pt(OTHER_VALUE).toString()); Assert.assertEquals("10pt", SimpleLength.pt(VALUE).toString()); }