@Test
    void verifyResolver() throws Throwable {
        val credential = CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword("mmoayyed");
        credential.getCredentialMetadata().setTenant("london");
        val principal = defaultPrincipalResolver.resolve(credential);
        assertNotNull(principal);
        assertEquals("mmoayyed", principal.getId());
        assertEquals("mmoayyed@example.org", principal.getSingleValuedAttribute("mail"));
        assertEquals("mmoayyed", principal.getSingleValuedAttribute("cn"));
    }
This is {@link TenantLdapPersonAttributeDaoBuilderTests}.

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