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