@Test
    void verifyAttributes() {
        val builder = new NonInflatingSaml20ObjectBuilder(openSamlConfigBean);
        val formats = Map.of("mail", "basic", "name", "unspecified", "cn", StringUtils.EMPTY);
        assertNotNull(builder.newAttribute("email", "mail",
            List.of("cas@example.org"),
            formats, "basic", Map.of()));
        assertNotNull(builder.newAttribute("common-name", "name",
            List.of("casuser"),
            formats, "basic", Map.of()));
        val attr3 = builder.newAttribute("cn-name", "cn",
            List.of("casuser"),
            formats, "basic", Map.of());
        assertNotNull(attr3);
        assertNull(attr3.getNameFormat());
    }
This is {@link NonInflatingSaml20ObjectBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-core/src/test/java/org/apereo/cas/support/saml/util/NonInflatingSaml20ObjectBuilderTests.java