@Test
public void resolveColor() throws IOException {

    assertEquals(BaseColor.BLACK, c.getFont().getColor());
    t.getCSS().put("color", "#00f");
    c = applier.apply(c, t);
    assertEquals(255, c.getFont().getColor().getBlue(), 0);
    t.getCSS().put("color", "#00ff00");
    c = applier.apply(c, t);
    assertEquals(255, c.getFont().getColor().getGreen(), 0);
    t.getCSS().put("color", "rgb(255,0,0)");
    c = applier.apply(c, t);
    assertEquals(255, c.getFont().getColor().getRed(), 0);
}