@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(configurationContext.getApplicationContext());

        val resolver = new TestBaseDelegatedClientAuthenticationCredentialResolver(configurationContext);
        val credentials = new TokenCredentials(UUID.randomUUID().toString());
        val clientCredential = new ClientCredential(credentials, "FakeClient");
        assertTrue(resolver.supports(clientCredential));
        val results = resolver.resolve(context, clientCredential);
        assertEquals(1, results.size());
        val profile = results.getFirst();
        assertEquals("casuser-linked", profile.getLinkedId());
        assertEquals("casuser", profile.getId());
        assertTrue(profile.getAttributes().containsKey("memberOf"));
        assertTrue(profile.getAttributes().containsKey("uid"));
    }
This is {@link DelegatedClientAuthenticationCredentialResolverTests}.

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