### Question:
FloatPreference extends BasePreference { public float get() { return mPreferences.getFloat(mKey, mDefaultValue); } 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_EqualDefaultValue() throws Exception { final SharedPreferences sharedPreferences = getSharedPreferences(); FloatPreference preference = new FloatPreference(sharedPreferences, PREFERENCES_KEY); assertEquals(preference.get(), FloatPreference.DEFAULT_VALUE_VALUE, mDelta); }
@Test public void expect_Preference_To_EqualDefaultValue_BeforeBeingSet() throws Exception { final float value = mPreference.get(); assertEquals(value, mDefaultValue, mDelta); assertNotEquals(value, mTestValue); }