Flavor { public boolean isDayNight() { return mIsDayNight; } Flavor(String name, int styleResource);  Flavor(String name, int styleResource, int dialogStyleResource);  Flavor(String name, int styleResource, int dialogStyleResource, boolean isDayNight); String getName(); @StyleRes int getStyleResource(); @StyleRes int getDialogStyleResource(); boolean isDayNight(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void isDayNight() throws Exception { boolean value = random.nextBoolean(); Flavor flavor = new Flavor("", -1, -1, value); assertThat(flavor.isDayNight(), is(value)); }