### Question:
PersistenceManagerImpl implements PersistenceManager { @Override public void updateCheckDeferredDeepLink(boolean checkedDeferredDeepLink) { sharedPreferences.edit().putBoolean(Key.CHECKED_DEFERRED_DEEP_LINK, checkedDeferredDeepLink).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 updateCheckDeferredDeepLink_persistToSharedPrefs() { persistenceManager.updateCheckDeferredDeepLink(true); verify(editor).putBoolean(PersistenceManagerImpl.Key.CHECKED_DEFERRED_DEEP_LINK, true); verify(editor).apply(); }