### Question:
LongPreference extends BasePreference { public void set(long value) { mPreferences.edit().putLong(mKey, value).apply(); } 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_BeSet() throws Exception { mPreference.set(mTestValue); assertTrue(mPreference.isSet()); }