### Question:
LongPreference extends BasePreference { public long get() { return mPreferences.getLong(mKey, mDefaultValue); } LongPreference(final SharedPreferences preferences, final String key);  LongPreference(final SharedPreferences preferences, final String key, long defaultValue); long get(); void set(long value); static final long DEFAULT_VALUE_VALUE; }### Answer:
@Test public void expect_Preference_To_EqualDefaultValue() throws Exception { final SharedPreferences sharedPreferences = getSharedPreferences(); LongPreference preference = new LongPreference(sharedPreferences, PREFERENCES_KEY); assertEquals(preference.get(), LongPreference.DEFAULT_VALUE_VALUE, mDelta); }
@Test public void expect_Preference_To_EqualDefaultValue_BeforeBeingSet() throws Exception { final long value = mPreference.get(); assertEquals(value, mDefaultValue); assertNotEquals(value, mTestValue); }