@Test
    void verifyOperation() throws Throwable {
        val creds = CoreAuthenticationTestUtils.getCredentialsWithDifferentUsernameAndPassword(CN, "Mellon");
        val principal = personDirectoryPrincipalResolver.resolve(creds,
            Optional.of(CoreAuthenticationTestUtils.getPrincipal()),
            Optional.of(new AcceptUsersAuthenticationHandler("handler")),
            Optional.of(CoreAuthenticationTestUtils.getService()));
        assertNotNull(principal);
        val attributes = principal.getAttributes();
        assertTrue(attributes.containsKey("cn"));
        assertTrue(attributes.containsKey("common-name"));
        assertTrue(attributes.containsKey("email"));
        assertTrue(attributes.containsKey("mail"));
        assertTrue(attributes.containsKey("primaryEmail"));
    }
This is {@link DefaultPersonDirectoryAttributeRepositoryPlanLdapTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-ldap/src/test/java/org/apereo/cas/authentication/DefaultPersonDirectoryAttributeRepositoryPlanLdapTests.java