### Question:
LogoutResponse extends WebResponse { public static LogoutResponse fromUri(Uri uri) { LogoutResponse response = new LogoutResponse(); response.state = uri.getQueryParameter("state"); return response; } private  LogoutResponse(); static LogoutResponse fromUri(Uri uri); @Override String getState(); @NonNull @Override String getKey(); @Override String persist();  }### Answer:
@Test public void fromUri() { String uri = String.format("com.okta.test:/logout?state=%s", CUSTOM_STATE); LogoutResponse response = LogoutResponse.fromUri(Uri.parse(uri)); assertEquals(response.getState(), mResponse.getState()); }