### Question:
PreferencesProvider { public synchronized void reset() { OPFLog.logMethod(); preferences.clear(); } private  PreferencesProvider(@NonNull final Context context); @NonNull static PreferencesProvider getInstance(@NonNull final Context context); @Nullable synchronized String getRegistrationId(); synchronized void saveRegistrationId(@Nullable final String registrationId); synchronized void reset(); static final int NO_SAVED_APP_VERSION; }### Answer:
@Test public void testReset() { for (int i = 0; i < NUM_TESTS; ++i) { preferences.put(KEY_APP_VERSION, RND.nextInt()); preferences.put(KEY_REGISTRATION_ID, String.format("regId%d", RND.nextInt())); preferencesProvider.reset(); assertNull(preferences.getString(KEY_REGISTRATION_ID)); assertNull(preferences.getInt(KEY_APP_VERSION)); } }