### Question:
LogoutRequest extends WebRequest { @Override public String persist() { return new Gson().toJson(mParameters); } LogoutRequest(Parameters parameters); @Override String getState(); @Override @NonNull Uri toUri(); @NonNull String getKey(); @Override String persist();  }### Answer:
@Test public void testBuilder() throws AuthorizationException { LogoutRequest request = new LogoutRequest.Builder() .state(CUSTOM_STATE) .config(mConfig) .tokenResponse(mTokenResponse) .provideConfiguration(mConfiguration) .create(); assertEquals(mRequest.persist(), request.persist()); }
@Test public void persist() { String json = mRequest.persist(); LogoutRequest.Parameters parameters = new Gson().fromJson(json, LogoutRequest.Parameters.class); LogoutRequest request = new LogoutRequest(parameters); assertEquals(request.persist(), json); }