@Test
    void verifyOperation() throws Throwable {
        val c = new X509CertificateCredential(new X509Certificate[]{VALID_CERTIFICATE});
        val json = MAPPER.writeValueAsString(c);
        assertNotNull(json);
        val obj = MAPPER.readValue(json, new TypeReference<X509CertificateCredential>() {
        });
        assertNotNull(obj);

        val serializer = new X509CertificateCredentialJsonSerializer();
        assertSame(X509CertificateCredential.class, serializer.handledType());
    }
This is {@link X509CertificateCredentialJsonSerializerTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/util/X509CertificateCredentialJsonSerializerTests.java