### Question:
PersistenceManagerImpl implements PersistenceManager { @Override public boolean checkedDeferredDeepLink() { return sharedPreferences.getBoolean(Key.CHECKED_DEFERRED_DEEP_LINK, false); } @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 checkedDeferredDeepLink_returnTrue() { when(sharedPreferences.getBoolean(PersistenceManagerImpl.Key.CHECKED_DEFERRED_DEEP_LINK, false)).thenReturn(true); boolean checkedDeferredDeepLink = persistenceManager.checkedDeferredDeepLink(); assertEquals(true, checkedDeferredDeepLink); }