@Test
    void verifyPost() throws Throwable {
        val context = getMockRequestContext();
        val sessionTicket = getTransientSessionTicket("SAML2ClientPostBinding");
        context.getFlowScope().put(TransientSessionTicket.class.getName(), sessionTicket);
        val result = delegatedAuthenticationRedirectToClientAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        val external = (MockExternalContext) context.getExternalContext();
        assertFalse(external.getExternalRedirectRequested());
        assertTrue(external.isResponseComplete());
        val response = (MockHttpServletResponse) WebUtils.getHttpServletResponseFromExternalWebflowContext(context);
        assertTrue(MediaType.parseMediaType(response.getContentType()).equalsTypeAndSubtype(MediaType.TEXT_HTML));
        assertNotNull(response.getContentAsString());
    }
This is {@link DelegatedClientAuthenticationRedirectActionSamlTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-saml/src/test/java/org/apereo/cas/web/saml2/DelegatedClientAuthenticationRedirectActionSamlTests.java