@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setRequestAttribute(Credentials.class.getName(), "caspac4j");

        val credentials = new TokenCredentials(USER);
        val clientCredential = new ClientCredential(credentials, "FakeClient");
        assertTrue(ldapDelegatedClientAuthenticationCredentialResolver.supports(clientCredential));
        val results = ldapDelegatedClientAuthenticationCredentialResolver.resolve(context, clientCredential);
        assertEquals(1, results.size());
        val profile = results.getFirst();
        assertEquals("caspac4j", profile.getLinkedId());
        assertEquals(USER, profile.getId());
        assertTrue(profile.getAttributes().containsKey("mail"));
        assertTrue(profile.getAttributes().containsKey("uid"));
    }
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