@Override
    public boolean isRevoked(final Certificate cert) {
        if (cert instanceof final X509Certificate xcert) {
            return getRevokedCertificates().stream().anyMatch(entry -> entry.getSerialNumber().equals(xcert.getSerialNumber()));
        }
        return false;
    }
@see java.security.cert.CRL#isRevoked(Certificate)
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/util/MockX509CRL.java