@Test
    void verifyAction() throws Throwable {
        val groovyResource = new ClassPathResource("GroovyWsFedMutator.groovy");
        val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
        val watchableScript = scriptFactory.fromResource(groovyResource);
        val attributeMutator = new GroovyWsFederationAttributeMutator(watchableScript);
        val results = attributeMutator.modifyAttributes(CoreAuthenticationTestUtils.getAttributes());
        assertEquals(1, results.size());
        assertTrue(results.containsKey("mail"));
    }
This is {@link GroovyWsFederationAttributeMutatorTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/attributes/GroovyWsFederationAttributeMutatorTests.java