@Test
    void verifyOperationForPostBinding() throws Throwable {
        val request = new MockHttpServletRequest();
        request.addParameter(SamlProtocolConstants.PARAMETER_SAML_RELAY_STATE, "CasRelayState");
        val registeredService = getSamlRegisteredServiceFor(false, false,
            false, "https://mockypost.io");
        WebUtils.putRegisteredService(request, registeredService);

        val logoutRequest = samlIdPLogoutResponseObjectBuilder.newLogoutRequest(
            UUID.randomUUID().toString(),
            ZonedDateTime.now(Clock.systemUTC()),
            "https://github.com/apereo/cas",
            samlIdPLogoutResponseObjectBuilder.newIssuer(registeredService.getServiceId()),
            UUID.randomUUID().toString(),
            samlIdPLogoutResponseObjectBuilder.newNameID(NameIDType.EMAIL, "cas@example.org"));
        try (val writer = SamlUtils.transformSamlObject(openSamlConfigBean, logoutRequest)) {
            val encodedRequest = EncodingUtils.encodeBase64(writer.toString().getBytes(StandardCharsets.UTF_8));
            WebUtils.putSingleLogoutRequest(request, encodedRequest);
        }

        val response = new MockHttpServletResponse();

        assertTrue(samlIdPSingleLogoutRedirectionStrategy.supports(request, response));
        assertNotNull(samlIdPSingleLogoutRedirectionStrategy.getName());

        val logoutResponse = samlIdPSingleLogoutRedirectionStrategy.handle(request, response);
        assertNull(WebUtils.getLogoutRedirectUrl(request, String.class));
        assertFalse(logoutResponse.getLogoutPostData().isEmpty());
        assertTrue(logoutResponse.getLogoutPostUrl().isPresent());
    }
This is {@link SamlIdPSingleLogoutRedirectionStrategyPostBindingTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/slo/SamlIdPSingleLogoutRedirectionStrategyPostBindingTests.java