### Question:
DoublePreference { public double get() { return Double.longBitsToDouble(mLongPreference.get()); } DoublePreference(SharedPreferences preferences, String key);  DoublePreference(SharedPreferences preferences, String key, double defaultValue); double get(); boolean isSet(); void set(double value); void delete(); static final double DEFAULT_VALUE_VALUE; }### Answer:
@Test public void expect_Preference_To_EqualDefaultValue() throws Exception { final SharedPreferences sharedPreferences = getSharedPreferences(); DoublePreference preference = new DoublePreference(sharedPreferences, PREFERENCES_KEY); assertEquals(preference.get(), DoublePreference.DEFAULT_VALUE_VALUE, mDelta); }
@Test public void expect_Preference_To_EqualDefaultValue_BeforeBeingSet() throws Exception { final double value = mPreference.get(); assertEquals(value, mDefaultValue, mDelta); assertNotEquals(value, mTestValue); }