@Test
public void resolveSpacingBeforeIs24() throws IOException {

    parent.addChild(second);
    first.getCSS().put("margin-bottom", "2em");
    first.getCSS().put(CSS.Property.FONT_SIZE, "18");
    first.getCSS().put(CSS.Property.FONT_SIZE, fst.translateFontSize(first) + "pt");
    second.getCSS().put("margin-top", "60pt");
    applier.apply(firstPara, first, configuration);
    applier.apply(secondPara, second, configuration);
    // 60 - 2 * (18px = 13.5pt)
    assertEquals(60 - (2 * 13.5f), secondPara.getSpacingBefore(), 0);
}