### Question:
IntPreference extends BasePreference { public void set(final int value) { mPreferences.edit().putInt(mKey, value).apply(); } IntPreference(final SharedPreferences preferences, final String key);  IntPreference(final SharedPreferences preferences, final String key, int defaultValue); int get(); void set(final int value); static final int DEFAULT_VALUE_VALUE; }### Answer:
@Test public void expect_Preference_To_BeSet() throws Exception { mPreference.set(mTestValue); assertTrue(mPreference.isSet()); }