@Test
    void verifyOperation() {
        val profile = DelegatedAuthenticationCandidateProfile.builder()
            .attributes(CoreAuthenticationTestUtils.getAttributes())
            .id(UUID.randomUUID().toString())
            .key(UUID.randomUUID().toString())
            .linkedId("casuser")
            .build();
        val userProfile = profile.toUserProfile("CasClient");
        assertNotNull(userProfile.getId());
        assertNotNull(userProfile.getAttributes());
        assertNotNull(userProfile.getClientName());
        assertNotNull(userProfile.getLinkedId());
    }
This is {@link DelegatedAuthenticationCandidateProfileTests}.

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