BrushOptionsPreferences { public static BrushOptionsPreferences newInstance() { return new BrushOptionsPreferences(ContextRetriever.INSTANCE.getApplicationContext().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE)); } protected  BrushOptionsPreferences(SharedPreferences sharedPreferences); static BrushOptionsPreferences newInstance(); void applyBrushSizePercentage(int percentage); int getBrushSizePercentage(); void applyBrushColor(BrushColor color); BrushColor getBrushColor(); int getBranchColor(); int getLeafColor();  }
@Test public void testThatNewInstanceReturnsNotNullBrushOptionsPreferences() { assertThat(BrushOptionsPreferences.newInstance()).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { BrushOptionsPreferences firstInstance = BrushOptionsPreferences.newInstance(); BrushOptionsPreferences secondInstance = BrushOptionsPreferences.newInstance(); assertThat(firstInstance).isNotEqualTo(secondInstance); }