@Test
    void verifyModifyAttributes() {
        val attributes = new HashMap<String, List<Object>>();

        val values = new ArrayList<>();
        values.add("test@example.com");
        attributes.put(UPN_PARAM, values);

        val instance = new TestWsFederationAttributeMutator();
        instance.modifyAttributes(attributes);

        assertTrue(attributes.containsKey("test"));
        assertTrue("newtest".equalsIgnoreCase(attributes.get("test").getFirst().toString()));
        assertTrue(attributes.containsKey(UPN_PARAM));
        assertTrue("testing".equalsIgnoreCase(attributes.get(UPN_PARAM).getFirst().toString()));
    }
Test cases for {@link WsFederationAttributeMutator}.

@author John Gasper
@since 4.2.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/WsFederationAttributeMutatorTests.java