@Test
    void verifyOperation() throws Throwable {
        val chain = new ChainingPrincipalNameTransformer();
        chain.addTransformer(new GroovyPrincipalNameTransformer(new ClassPathResource("GroovyTransformer.groovy")));
        chain.addTransformer(new ConvertCasePrincipalNameTransformer(true));
        val result = chain.transform("cas@example.org");
        assertEquals("CAS-PERSON", result);
    }
This is {@link GroovyPrincipalNameTransformerTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/transforms/GroovyPrincipalNameTransformerTests.java