### Question:
Color { public void multiply(@Nonnull final Color color, final float factor) { red = color.red * factor; green = color.green * factor; blue = color.blue * factor; alpha = color.alpha * factor; } Color(@Nonnull final String color);  Color(final float newRed, final float newGreen, final float newBlue, final float newAlpha);  Color(final int color);  Color(@Nonnull final Color newColor, final float newAlpha);  Color(@Nonnull final Color colorParam); String getColorString(); void setColorString(final String colorString); @Nonnull String getColorStringWithoutAlpha(); void linear(@Nonnull final Color start, @Nonnull final Color end, final float t); float getRed(); float getGreen(); float getBlue(); float getAlpha(); void multiply(@Nonnull final Color color, final float factor); @Deprecated void mutiply(@Nonnull final Color color, final float factor); @Override @Nonnull String toString(); @Nonnull Color setAlpha(final float newColorAlpha); void setRed(final float newRed); void setGreen(final float newGreen); void setBlue(final float newBlue); static boolean check(final String color); void fromString(@Nonnull final String color); void fromStringWithoutAlpha(@Nonnull final String color); @Nonnull static Color randomColor(); static final Color NONE; static final Color WHITE; static final Color BLACK; }### Answer:
@Test public void testMultiply() { Color c = new Color(1.0f, 0.5f, 0.6f, 0.8f); Color m = new Color("#000f"); m.multiply(c, 0.5f); checkColor(m, 0.5f, 0.25f, 0.3f, 0.4f); }