### Question:
OIDCCredentials { public static OIDCCredentials deserialize(final String serializedCredential) { nonEmpty(serializedCredential, "serializedCredential"); try { final JSONObject jsonCredential = new JSONObject(serializedCredential); final String serializedAuthState = jsonCredential.getString("authState"); return new OIDCCredentials(serializedAuthState); } catch (JSONException e) { throw new IllegalArgumentException(e); } } OIDCCredentials(final String serialisedCredential);  OIDCCredentials(); String getAccessToken(); String getIdentityToken(); String getRefreshToken(); AuthState getAuthState(); boolean verifyClaims(final JsonWebKeySet jwks,
                    final KeycloakConfiguration keycloakConfig); boolean isExpired(); boolean getNeedsRenewal(); void setNeedsRenewal(); boolean isAuthorized(); String serialize(); static OIDCCredentials deserialize(final String serializedCredential); boolean checkValidAuth(); boolean renew(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testDeserialize() { OIDCCredentials testCredential = new OIDCCredentials(CREDENTIAL_AUTH_STATE); String serialized = testCredential.serialize(); OIDCCredentials deserialised = OIDCCredentials.deserialize(serialized); Assert.assertTrue(testCredential.equals(deserialised)); }