@Test
    void verifyMappedToMultipleNames() {
        try (val store = new DefaultAttributeDefinitionStore()) {
            store.setScope("example.org");
            val defn = DefaultAttributeDefinition.builder()
                .key("cn")
                .name("commonName,common-name,cname")
                .build();
            store.registerAttributeDefinition(defn);
            val attributes = CoreAuthenticationTestUtils.getAttributes();
            val attrs = store.resolveAttributeValues(attributes.keySet(), attributes,
                CoreAuthenticationTestUtils.getPrincipal(),
                CoreAuthenticationTestUtils.getRegisteredService(), CoreAuthenticationTestUtils.getService());
            assertFalse(attrs.isEmpty());
            assertFalse(attrs.containsKey("cn"));
            assertTrue(attrs.containsKey("commonName"));
            assertTrue(attrs.containsKey("common-name"));
            assertTrue(attrs.containsKey("cname"));
        }
    }
This is {@link DefaultAttributeDefinitionStoreTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/DefaultAttributeDefinitionStoreTests.java