PreferenceStoreImpl implements PreferenceStore { @Override public SharedPreferences get() { return sharedPreferences; } PreferenceStoreImpl(Context context, String name); @Override SharedPreferences get(); @Override SharedPreferences.Editor edit(); @Override boolean save(SharedPreferences.Editor editor);  }
@Test @SuppressLint("CommitPrefEdits") public void testGet() { assertNotNull(preferenceStore.get()); assertTrue(preferenceStore.get() instanceof SharedPreferences); }