@Test
    void verifyReason() {
        val entry = mock(X509CRLEntry.class);
        when(entry.hasExtensions()).thenReturn(Boolean.TRUE);
        when(entry.getSerialNumber()).thenReturn(BigInteger.ONE);
        when(entry.getRevocationDate()).thenReturn(new Date());
        when(entry.getExtensionValue(anyString())).thenReturn("3".getBytes(StandardCharsets.UTF_8));
        val results = new RevokedCertificateException(entry);
        assertNotNull(results.getReason());
        assertNotNull(results.getMessage());
    }
This is {@link RevokedCertificateExceptionTests}.

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