@Test
public void resolveAlignment() throws IOException {

    assertEquals(Element.ALIGN_LEFT, firstPara.getAlignment(), 0);
    first.getCSS().put("text-align", "right");
    applier.apply(firstPara, first, configuration);
    assertEquals(Element.ALIGN_RIGHT, firstPara.getAlignment(), 0);
    first.getCSS().put("text-align", "left");
    applier.apply(firstPara, first, configuration);
    assertEquals(Element.ALIGN_LEFT, firstPara.getAlignment(), 0);
    first.getCSS().put("text-align", "center");
    applier.apply(firstPara, first, configuration);
    assertEquals(Element.ALIGN_CENTER, firstPara.getAlignment(), 0);
}