BrushOptionsPreferences { public int getBrushSizePercentage() { return sharedPreferences.getInt(PREF_BRUSH_SIZE, DEFAULT_PERCENTAGE); } 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 testThatGetBrushSizeReturnsGetsValueFromSharedPreferences() { givenThatSizeWasApplied(); assertThat(brushOptionsPreferences.getBrushSizePercentage()).isEqualTo(ANY_PERCENTAGE); }