@Test
    void verifyPostLogout() throws Throwable {
        val context = MockRequestContext.create(applicationContext).withUserAgent();
        context.setMethod(HttpMethod.POST);
        val tgt = prepCredential(context, UUID.randomUUID().toString(), "AutomaticPostLogoutClient");
        context.setParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER, "AutomaticPostLogoutClient");
        try (val webServer = new MockWebServer(HttpStatus.OK)) {
            webServer.start();
            val continuation = SingleLogoutContinuation.builder().url("http://localhost:%s".formatted(webServer.getPort()));
            context.setRequestAttribute(SingleLogoutContinuation.class.getName(), continuation.build());
            assertEquals(CasWebflowConstants.TRANSITION_ID_PROCEED, action.execute(context).getId());
            assertNotNull(configurationContext.getTicketRegistry().getTicket(tgt.getId()));
            assertNull(context.getHttpServletRequest().getAttribute(SingleLogoutContinuation.class.getName()));
        }
    }
This is {@link DelegatedAuthenticationIdentityProviderLogoutActionTests}.

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