### Question:
ColorUtils { public static int[] hexToRGB(String hexValue) { int[] rgb = new int[3]; if (!"".equals(hexValue)) { int rgbValue = Color.parseColor("#" + hexValue); rgb[0] = (rgbValue & 0xFF0000) >> 16; rgb[1] = (rgbValue & 0xFF00) >> 8; rgb[2] = (rgbValue & 0xFF); } return rgb; } private  ColorUtils(); static String getRGB(float n); static String RGBToHex(int n); static float[] RGBToHSB(@IntRange(from = 0, to = 255) int r,
                                   @IntRange(from = 0, to = 255) int g,
                                   @IntRange(from = 0, to = 255) int b); static float[] RGBToHSL(@IntRange(from = 0, to = 255) int red,
                                   @IntRange(from = 0, to = 255) int green,
                                   @IntRange(from = 0, to = 255) int blue,
                                   float[] hsl); static String getColorMessage(@IntRange(from = 0, to = 255) int rgbRColor,
                                         @IntRange(from = 0, to = 255) int rgbGColor,
                                         @IntRange(from = 0, to = 255) int rgbBColor,
                                         @IntRange(from = 0, to = 255) int rgbOpacity); static String getComplementaryColorMessage(short[] argbColorValues,
                                                      short[] argbComplementaryColorValues,
                                                      short[] argbContrastColorValues); static int[] hexToRGB(String hexValue); static int[] hexToARGB(String hexValue); static int getComplementaryColor(@IntRange(from = 0, to = 255) int rgbRColor,
                                            @IntRange(from = 0, to = 255) int rgbGColor,
                                            @IntRange(from = 0, to = 255) int rgbBColor); static int getContrastColor(@IntRange(from = 0, to = 255) int rgbRColor,
                                       @IntRange(from = 0, to = 255) int rgbGColor,
                                       @IntRange(from = 0, to = 255) int rgbBColor);  }### Answer:
@Test public void colorUtils_hexToRGB() { int[] rgb = ColorUtils.hexToRGB(""); assertNotNull(rgb); assertEquals(rgb.length, 3); assertEquals(rgb[0], 0); assertEquals(rgb[1], 0); assertEquals(rgb[2], 0); }