### Question:
PersistenceManagerImpl implements PersistenceManager { @Override public void clear() { sharedPreferences.edit().clear().apply(); } @VisibleForTesting  PersistenceManagerImpl(Context context); @Override void setSessionId(String sessionId); @Nullable @Override String getSessionId(); @Override void setSourceToken(String sourceToken); @Nullable @Override String getSourceToken(); @Override void clear(); @Override boolean checkedDeferredDeepLink(); @Override void updateCheckDeferredDeepLink(boolean checkedDeferredDeepLink);  }### Answer:
@Test public void clear_clearSharedPrefs() { when(editor.clear()).thenReturn(editor); persistenceManager.clear(); verify(editor).clear(); verify(editor).apply(); }