@Test
    void verifyOperation() throws Throwable {
        val chain = new ChainingPrincipalNameTransformer();
        chain.addTransformer(new RegexPrincipalNameTransformer("(\\w+)@\\w+.org"));
        chain.addTransformer(new ConvertCasePrincipalNameTransformer(true));
        val result = chain.transform("cas@example.org");
        assertEquals("CAS", result);
    }
This is {@link RegexPrincipalNameTransformerTests}.

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