public void testLength() throws PropertyException {
final FObj fobj = makeTestFObj();
final PropertyList propertyList = fobj.getPropertyList();
final PdLineHeight lh = new PdLineHeight(fobj, "", "3.7cm");
propertyList.addProperty(fobj, lh);
final int halfLeadingMax = fobj.traitHalfLeadingMax(STD_FO_CONTEXT);
/* D = Distance between baselines = 3.7cm = 104,882 millipoints.
* L = Leading = D - the default font size of 12,000 = 92,882
* millipoints.
* HL = L / 2 = 46,441 millipoints. */
assertEquals(46441, halfLeadingMax);