206207208209210211212213
} catch (NumberFormatException ex) { Assert.assertNull(pixelLength1); } // make sure Units are resolved correctly Unit unit = Length.parseUnit("cm"); Assert.assertEquals(Unit.CENTIMETER, unit); }