@Test
    void verifyFriendlyNamesForKnownAttributes() throws Throwable {
        val service = getSamlRegisteredServiceForTestShib();
        val adaptor = SamlRegisteredServiceMetadataAdaptor
            .get(samlRegisteredServiceCachingMetadataResolver, service, service.getServiceId()).orElseThrow();

        val buildContext = SamlProfileBuilderContext.builder()
            .samlRequest(getAuthnRequestFor(service))
            .httpRequest(new MockHttpServletRequest())
            .httpResponse(new MockHttpServletResponse())
            .authenticatedAssertion(Optional.of(getAssertion(Map.of("urn:oid:0.9.2342.19200300.100.1.1", "casuser",
                "urn:oid:2.5.4.20", "+13477465341",
                "urn:oid:1.3.6.1.4.1.5923.1.1.1.6", "casuser-principal",
                "urn:oid:0.9.2342.19200300.100.1.3", "cas@example.org"))))
            .registeredService(service)
            .adaptor(adaptor)
            .binding(SAMLConstants.SAML2_POST_BINDING_URI)
            .build();

        val statement = samlProfileSamlAttributeStatementBuilder.build(buildContext);
        val attributes = statement.getAttributes();
        assertFalse(attributes.isEmpty());

        assertTrue(attributes.stream()
            .anyMatch(a -> "urn:oid:0.9.2342.19200300.100.1.1".equals(a.getName())
                && "uid".equalsIgnoreCase(a.getFriendlyName())));
        assertTrue(attributes.stream()
            .anyMatch(a -> "urn:oid:2.5.4.20".equals(a.getName())
                && "telephoneNumber".equalsIgnoreCase(a.getFriendlyName())));
        assertTrue(attributes.stream()
            .anyMatch(a -> "urn:oid:1.3.6.1.4.1.5923.1.1.1.6".equals(a.getName())
                && "eduPersonPrincipalName-FriendlyName".equalsIgnoreCase(a.getFriendlyName())));
        assertTrue(attributes.stream()
            .anyMatch(a -> "urn:oid:0.9.2342.19200300.100.1.3".equals(a.getName())
                && "email".equalsIgnoreCase(a.getFriendlyName())));
    }
This is {@link SamlProfileSamlAttributeStatementBuilderTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/builders/attr/SamlProfileSamlAttributeStatementBuilderTests.java