### Question:
OktaState { public TokenResponse getTokenResponse() throws EncryptionException { return mOktaRepo.get(TokenResponse.RESTORE); } OktaState(OktaRepository mOktaRepository); TokenResponse getTokenResponse(); boolean hasTokenResponse(); ProviderConfiguration getProviderConfiguration(); WebRequest getAuthorizeRequest(); void setCurrentState(State state); State getCurrentState(); void save(Persistable persistable); void delete(Persistable persistable); void delete(String key); void setEncryptionManager(EncryptionManager encryptionManager);  }### Answer:
@Test public void getTokenResponse() throws OktaRepository.EncryptionException { TokenResponse tokenResponse = TestValues.getTokenResponse(); mOktaState.save(tokenResponse); TokenResponse expected = mOktaState.getTokenResponse(); assertNotNull(expected); assertEquals(tokenResponse.persist(), expected.persist()); }