### Question:
OktaState { public WebRequest getAuthorizeRequest() throws EncryptionException { return mOktaRepo.get(WebRequest.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 getAuthorizeRequest() throws OktaRepository.EncryptionException, AuthorizationException { WebRequest authorizedRequest = TestValues.getAuthorizeRequest(TestValues.getConfigWithUrl(CUSTOM_URL), null); mOktaState.save(authorizedRequest); AuthorizeRequest expected = (AuthorizeRequest) mOktaState.getAuthorizeRequest(); assertNotNull(expected); assertEquals(authorizedRequest.persist(), expected.persist()); }