@Test
    void verifyChain() throws Throwable {
        val t = new ChainingPrincipalNameTransformer();
        t.addTransformer(new RegexPrincipalNameTransformer("(.+)@example.org"));
        t.addTransformer(new PrefixSuffixPrincipalNameTransformer("prefix-", "-suffix"));
        t.addTransformer(new ConvertCasePrincipalNameTransformer(true));
        val uid = t.transform("casuser@example.org");
        assertEquals("PREFIX-CASUSER-SUFFIX", uid);
    }
This is {@link ChainingPrincipalNameTransformerTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-util/src/test/java/org/apereo/cas/util/gen/ChainingPrincipalNameTransformerTests.java