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