BackgroundColor { public BackgroundColor(@ColorInt int color) { this.color = color; } BackgroundColor(@ColorInt int color);  BackgroundColor(@Nullable @ColorInt Integer color, @ColorInt int fallbackColor); int value(); @Override boolean equals(Object obj);  }
@Test public void testBackgroundColor() { BackgroundColor color = new BackgroundColor(Color.RED); assertEquals(Color.RED, color.value()); color = new BackgroundColor(Color.BLACK, Color.WHITE); assertEquals(Color.BLACK, color.value()); color = new BackgroundColor(null, Color.WHITE); assertEquals(Color.WHITE, color.value()); }