ColorUtils { public static boolean isLightColor(final int color) { return isLightColor(color, DEFAULT_LIGHTNESS_THRESHOLD); } private  ColorUtils(); static int calculateCtaTextColor(final int ctaBackgroundColor); static int calculateCtaOnTapColor(final int ctaBackgroundColor); static boolean isLightColor(final int color); static int calculateDarkerColor(final int color, final float factor); static int calculateLighterColor(final int color, final float factor); static int calculateContrastingColor(final int color); static boolean isLightColor(final int color, final float factor);  }
@Test public void testIsLightColor_black() { assertFalse(ColorUtils.isLightColor(Color.BLACK)); }
@Test public void testIsLightColor_white() { assertTrue(ColorUtils.isLightColor(Color.WHITE)); }
@Test public void testDefaultCtaButtonIsDarkColor() { assertFalse(ColorUtils.isLightColor(R.color.tw__ad_cta_default)); }