### Question:
AuthorizeRequest extends WebRequest { @Override @NonNull public Uri toUri() { return mParameters.toUri(); } AuthorizeRequest(Parameters parameters); @Override String getState(); String getCodeVerifier(); String getNonce(); String getMaxAge(); @Override @NonNull Uri toUri(); @NonNull String getKey(); @Override String persist(); static final String IDP_SCOPE; static final String IDP; static final String LOGIN_HINT; static final String STATE; }### Answer:
@Test public void toUri() { Uri uri = mRequest.toUri(); assertEquals(uri.getQueryParameter("redirect_uri"), mConfig.getRedirectUri().toString()); assertEquals(uri.getQueryParameter("scope"), AsciiStringListUtil.iterableToString(Arrays.asList(SCOPES))); assertEquals(uri.getQueryParameter("nonce"), CUSTOM_NONCE); assertEquals(uri.getQueryParameter("state"), CUSTOM_STATE); }