@Override
    public List<DelegatedAuthenticationCandidateProfile> resolve(final RequestContext context,
                                                                 final ClientCredential credentials) {
        val profile = resolveUserProfile(context, credentials)
            .orElseThrow(() -> new IllegalArgumentException("Unable to resolve user profile"));
        
        val p1 = DelegatedAuthenticationCandidateProfile.builder()
            .attributes(profile.getAttributes())
            .id(profile.getId())
            .key(UUID.randomUUID().toString())
            .linkedId("casuser-linked")
            .build();
        return List.of(p1);
    }
This is {@link TestBaseDelegatedClientAuthenticationCredentialResolver}.

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