Flavor { @StyleRes public int getStyleResource() { return mStyleResource; } 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 getStyleResource() throws Exception { int styleRes = random.nextInt(); Flavor flavor = new Flavor("", styleRes); assertThat(flavor.getStyleResource(), is(styleRes)); }