### Question:
AuthorizeResponse extends WebResponse { @Override public String persist() { return new Gson().toJson(this); } 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 persist() { String json = mResponse.persist(); AuthorizeResponse authorizeResponse = new Gson().fromJson(json, AuthorizeResponse.class); assertEquals(json, authorizeResponse.persist()); }