@Test
        void verifyUnsignedRequestAllowed() throws Throwable {
            val request = new MockHttpServletRequest();
            request.setMethod("POST");
            val response = new MockHttpServletResponse();

            val service = getSamlRegisteredServiceFor(false, false, false, "https://cassp.example.org");
            service.setSignLogoutRequest(TriStateBoolean.FALSE);
            servicesManager.save(service);
            var builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory()
                .getBuilder(LogoutRequest.DEFAULT_ELEMENT_NAME);
            var logoutRequest = (LogoutRequest) builder.buildObject();

            builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory()
                .getBuilder(Issuer.DEFAULT_ELEMENT_NAME);
            val issuer = (Issuer) builder.buildObject();
            issuer.setValue(service.getServiceId());
            logoutRequest.setIssuer(issuer);

            val xml = SamlUtils.transformSamlObject(openSamlConfigBean, logoutRequest).toString();
            request.addParameter(SamlProtocolConstants.PARAMETER_SAML_REQUEST, EncodingUtils.encodeBase64(xml));
            controller.handleSaml2ProfileSLOPostRequest(response, request);
            assertEquals(HttpStatus.SC_OK, response.getStatus());
            assertNotNull(WebUtils.getSingleLogoutRequest(request));
        }
This is {@link SLOSamlIdPPostProfileHandlerControllerTests}.

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