### Question:
ColorUtils { public static Color hexRGBToColor(String hexColor) { return hexRGBToColor(new Color(1f, 1f, 1f, 1f), hexColor); }  static void rgb565ToColor(Color color, int value); static void rgba4444ToColor(Color color, int value); static void rgb888ToColor(Color color, int value); static void rgba8888ToColor(Color color, int value); static Color hexRGBToColor(String hexColor); static Color hexRGBToColor(Color color, String hexColor);  }### Answer:
@Test(expected=IllegalArgumentException.class) public void testConvertFromHexString() { Color color = new Color(); color.set(0.2f, 0.3f, 0.4f, 0.5f); ColorUtils.hexRGBToColor(color, "akldfkla;shfkla;"); }
@Test public void testConvertFromHexString2() { Color color = new Color(); color.set(0.2f, 0.3f, 0.4f, 0.5f); ColorUtils.hexRGBToColor(color, "#ffaabb"); assertEquals(1f, color.r, 0.025f); assertEquals(0.666f, color.g, 0.025f); assertEquals(0.733f, color.b, 0.025f); assertEquals(0.5f, color.a, 0.025f); }