@BeforeAll
    public static void bootstrap() throws Exception {
        @Cleanup
        val localhost = new LDAPConnection("localhost", LDAP_PORT, "cn=Directory Manager", "password");
        val resource = new ClassPathResource("ldif/ldap-consent.ldif");
        LOGGER.debug("Populating LDAP entries from [{}]", resource);
        LdapIntegrationTestsOperations.populateEntries(localhost, resource.getInputStream(), "ou=people,dc=example,dc=org");
    }
Unit tests for {@link LdapConsentRepository} class.

@author Arnold Bergner
@since 5.3.0
support/cas-server-support-consent-ldap/src/test/java/org/apereo/cas/consent/LdapConsentRepositoryTests.java