@Test
    public void validateWithEmptyConditions() {
        val credentials = createCredentialsForTest(false, false);
        final Map<String, String> mappedAttributes = createMappedAttributesForTest();

        val authenticator = new SAML2Authenticator(null, null, "username", mappedAttributes);
        authenticator.init();
        authenticator.buildProfile(credentials);

        val finalProfile = credentials.getUserProfile();
        assertTrue(finalProfile.containsAttribute("mapped-display-name"));
        assertTrue(finalProfile.containsAttribute("mapped-given-name"));
        assertTrue(finalProfile.containsAttribute("mapped-surname"));
    }
This is {@link SAML2AuthenticatorTests}.
@author Misagh Moayyed
pac4j-saml/src/test/java/org/pac4j/saml/credentials/authenticator/SAML2AuthenticatorTests.java