@Test
public void testParseColors() {

    Color rgb = ColorUtil.parseColor("rgb(255,0,0)");
    Color hex = ColorUtil.parseColor("#FF0000");
    Color rrggbb = ColorUtil.parseColor("FF0000");
    Color rgba = ColorUtil.parseColor("rgba(255,0,0,1)");
    Assert.assertEquals(Color.RED, rgb);
    Assert.assertEquals(Color.RED, hex);
    Assert.assertEquals(Color.RED, rrggbb);
    Assert.assertEquals(Color.RED, rgba);
}