### Question:
AuthorizeResponse extends WebResponse { public static AuthorizeResponse fromUri(Uri uri) { AuthorizeResponse response = new AuthorizeResponse(); response.code = uri.getQueryParameter("code"); response.error = uri.getQueryParameter("error"); response.error_description = uri.getQueryParameter("error_description"); response.expires_in = uri.getQueryParameter("expires_in"); response.id_token = uri.getQueryParameter("id_token"); response.scope = uri.getQueryParameter("scope"); response.state = uri.getQueryParameter("state"); response.token_type = uri.getQueryParameter("token_type"); response.iss = uri.getQueryParameter("iss"); response.type_hint = uri.getQueryParameter("type_hint"); response.session_hint = uri.getQueryParameter("session_hint"); response.login_hint = uri.getQueryParameter("login_hint"); return response; } private  AuthorizeResponse(); static AuthorizeResponse fromUri(Uri uri); @Override String getState(); String getCode(); String getError(); String getErrorDescription(); String getIssuer(); String getTypeHint(); String getSessionHint(); String getLoginHint(); @NonNull @Override String getKey(); @Override String persist(); static final String ACTIVATION; static final String AUTHENTICATED; static final String UNAUTHENTICATED; }### Answer:
@Test public void fromUri() { String uri = String.format("com.okta.test:/callback?code=%s&state=%s", CUSTOM_CODE, CUSTOM_STATE); AuthorizeResponse response = AuthorizeResponse.fromUri(Uri.parse(uri)); assertEquals(response.persist(), mResponse.persist()); }