@Test
    void verifyRedirect() throws Throwable {
        val context = getMockRequestContext();
        val sessionTicket = getTransientSessionTicket("CasClient");
        context.getFlowScope().put(TransientSessionTicket.class.getName(), sessionTicket);
        val result = delegatedAuthenticationRedirectToClientAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        val external = (MockExternalContext) context.getExternalContext();
        assertNotNull(external.getExternalRedirectUrl());
        assertTrue(external.getExternalRedirectRequested());
    }
This is {@link DelegatedClientAuthenticationRedirectActionTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/web/flow/actions/DelegatedClientAuthenticationRedirectActionTests.java