@BeforeAll
    public static void bootstrap() throws Throwable {
        ClientInfoHolder.setClientInfo(ClientInfo.from(new MockHttpServletRequest()));
        @Cleanup
        val localhost = new LDAPConnection("localhost", LDAP_PORT, "cn=Directory Manager", "password");
        val ldif = IOUtils.toString(new ClassPathResource("ldap-pac4j.ldif").getInputStream(), StandardCharsets.UTF_8)
            .replace("$user", USER);
        LdapIntegrationTestsOperations.populateEntries(localhost,
            new ByteArrayInputStream(ldif.getBytes(StandardCharsets.UTF_8)),
            "ou=people,dc=example,dc=org");
    }
This is {@link LdapDelegatedClientAuthenticationCredentialResolverTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/authentication/principal/ldap/LdapDelegatedClientAuthenticationCredentialResolverTests.java