@ParameterizedTest
    @MethodSource("getTestParameters")
    public void checkCertificate(
        final CRLDistributionPointRevocationChecker checker,
        final String[] certFiles,
        final String crlFile,
        final GeneralSecurityException expected) throws Exception {

        val file = new File(FileUtils.getTempDirectory(), "ca.crl");
        try (val out = new FileOutputStream(file)) {
            IOUtils.copy(new ClassPathResource(crlFile).getInputStream(), out);
        }

        this.webServer = new MockWebServer(8085, new FileSystemResource(file), "text/plain");
        this.webServer.start();
        LOGGER.debug("Web server listening on port 8085 serving file [{}]", crlFile);
        Thread.sleep(500);

        BaseCRLRevocationCheckerTests.checkCertificate(checker, certFiles, expected);
    }
Gets the unit test parameters.

@return Test parameter data.
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/authentication/handler/support/CRLDistributionPointRevocationCheckerTests.java