### Question:
ColorUtilities { public static Color blendColors(Color color1, Color color2) { if (color1.getAlpha() < COLOR_COMPONENT_MAX_VALUE) { float alpha = (float)color1.getAlpha() / COLOR_COMPONENT_MAX_VALUE; return new Color((color1.getRed() * alpha + color2.getRed() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE, (color1.getGreen() * alpha + color2.getGreen() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE, (color1.getBlue() * alpha + color2.getBlue() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE); } return color1; } 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 testBlendColors() { Assert.assertEquals(new Color(51, 0, 204), ColorUtilities.blendColors(new Color(255, 0, 0, 51), Color.BLUE)); }