@BeforeAll
    public static void bootstrap() throws Exception {
        @Cleanup
        val localhost = new LDAPConnection("localhost",
            BaseX509LdapResourceFetcherTests.LDAP_PORT, "cn=Directory Manager", "password");
        val ldif = new ClassPathResource("ldap-x509.ldif");
        LdapIntegrationTestsOperations.populateEntries(localhost, ldif.getInputStream(), "ou=people,dc=example,dc=org");

        val userCA = new byte[1024];
        IOUtils.read(new ClassPathResource("userCA-valid.crl").getInputStream(), userCA);
        val value = EncodingUtils.encodeBase64ToByteArray(userCA);
        val attr = LdapAttribute.builder().name("certificateRevocationList").values(value).binary(true).build();

        val bindInit = new BindConnectionInitializer("cn=Directory Manager", new Credential("password"));
        LdapTestUtils.modifyLdapEntry(localhost, DN, attr, bindInit);
    }
Test cases for {@link LdaptiveResourceCRLFetcher}

@author Misagh Moayyed
@since 4.1
support/cas-server-support-x509/src/test/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcherTests.java