ColorHelper { public static Color fromString(final String hexValue) { if (ColorHelper.helper == null) { ColorHelper.helper = new ColorHelper(); } return ColorHelper.helper.getFromString(hexValue); } ColorHelper(); static Color fromRGB(final int red, final int green, final int blue); static Color fromString(final String hexValue); Color getFromRGB(final int red, final int green, final int blue); Color getFromString(final String hexValue);  }
@Test public void testAll() { for (final Color c : SimpleColor.values()) { Assert.assertEquals(c, ColorHelper.fromString(c.getValue())); } }