@BeforeAll
    public static void bootstrap() throws Exception {
        ClientInfoHolder.setClientInfo(ClientInfo.from(new MockHttpServletRequest()));
        val localhost = new LDAPConnection("localhost", LDAP_PORT, "cn=Directory Manager", "password");
        localhost.connect("localhost", LDAP_PORT);
        localhost.bind("cn=Directory Manager", "password");
        LdapIntegrationTestsOperations.populateEntries(localhost,
            new ClassPathResource("ldif/ldap-authz.ldif").getInputStream(), "ou=people,dc=example,dc=org");
    }
This is {@link BaseEndpointLdapAuthenticationProviderTests}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-ldap-core/src/test/java/org/apereo/cas/authorization/BaseEndpointLdapAuthenticationProviderTests.java