ColorHelper { public static Color fromRGB(final int red, final int green, final int blue) { if (ColorHelper.helper == null) { ColorHelper.helper = new ColorHelper(); } return ColorHelper.helper.getFromRGB(red, green, blue); } 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 testBlack() { Assert.assertEquals("#000000", ColorHelper.fromRGB(0, 0, 0).getValue()); Assert.assertEquals(SimpleColor.BLACK, ColorHelper.fromRGB(0, 0, 0)); }