@Test
    public void testRedirectForSAMLProtocol() {
        val config = new CasConfiguration();
        config.setProtocol(CasProtocol.SAML);
        val builder = newBuilder(config);
        val action = builder.getRedirectionAction(new CallContext(MockWebContext.create(), new MockSessionStore())).get();
        assertTrue(action instanceof FoundAction);
        assertEquals(LOGIN_URL + "?TARGET=http%3A%2F%2Fwww.pac4j.org%2Ftest.html%3Fclient_name%3DCasClient",
            ((FoundAction) action).getLocation());
    }
Tests {@link CasRedirectionActionBuilder}.

@author Jerome LELEU
@since 3.7.0
pac4j-cas/src/test/java/org/pac4j/cas/redirect/CasRedirectionActionBuilderTest.java