### Question:
ColorUtilities { public static String convertToRGBAColorString(Color aColor) { if (aColor == null) { return null; } StringBuilder sb = new StringBuilder(); sb.append(aColor.getRed()).append('-').append(aColor.getGreen()).append('-').append(aColor.getBlue()).append('-') .append(aColor.getAlpha()); return sb.toString(); } private  ColorUtilities(); static Color blendColors(Color color1, Color color2); static Color brighten(Color input, double factor); static Color convertFromColorString(String color); static Color convertFromHexString(String color, int redIndex, int greenIndex, int blueIndex); static Color convertFromHexString(String color, int redIndex, int greenIndex, int blueIndex, int alphaIndex); static String convertToHexString(Color color, int redIndex, int greenIndex, int blueIndex); static String convertToHexString(Color color, int redIndex, int greenIndex, int blueIndex, int alphaIndex); static String convertToRGBAColorString(Color aColor); static Color darken(Color input, double factor); static Color lighten(Color color); static int getBrightness(Color color); static Color getContrastingColor(Color color); static Color getAlternateColor(Color color, int shift); static boolean isEqual(Color c1, Color c2); static boolean isEqualIgnoreAlpha(Color c1, Color c2); static Color opacitizeColor(Color startingColor, float alpha); static Color opacitizeColor(Color startingColor, int alpha); static final int COLOR_COMPONENT_MAX_VALUE; }### Answer:
@Test public void testConvertToRGBAColorString() { Assert.assertEquals("255-0-0-255", ColorUtilities.convertToRGBAColorString(new Color(255, 0, 0, 255))); Assert.assertEquals("255-0-0-0", ColorUtilities.convertToRGBAColorString(new Color(255, 0, 0, 0))); Assert.assertEquals("0-255-0-255", ColorUtilities.convertToRGBAColorString(new Color(0, 255, 0, 255))); Assert.assertEquals("0-255-0-0", ColorUtilities.convertToRGBAColorString(new Color(0, 255, 0, 0))); Assert.assertEquals("0-0-255-255", ColorUtilities.convertToRGBAColorString(new Color(0, 0, 255, 255))); Assert.assertEquals("0-0-255-0", ColorUtilities.convertToRGBAColorString(new Color(0, 0, 255, 0))); }