### Question:
Color { public static float brightness (int argb) { int red = (argb >> 16) & 0xFF; int green = (argb >> 8) & 0xFF; int blue = (argb >> 0) & 0xFF; int max = Math.max(Math.max(red, green), blue); return ((float) max) / 255.0f; } private  Color(); static float brightness(int argb); static final int CLEAR; static final int WHITE; static final int BLACK; }### Answer:
@Test public void testBrightness() { assertEquals(0, Color.brightness(0xFF000000), 0.0000001); assertEquals(1, Color.brightness(0xFFFFFFFF), 0.0000001); assertEquals(0.0117647, Color.brightness(0xFF010203), 0.0000001); assertEquals(1, Color.brightness(0xFF00FFC8), 0.0000001); }