@Test
    void verifyLogoutWithReply() {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();

        val registeredService = getWsFederationRegisteredService();
        request.addParameter(WSFederationConstants.WTREALM, registeredService.getRealm());
        request.addParameter(WSFederationConstants.WREPLY, registeredService.getServiceId());
        request.addParameter(WSFederationConstants.WA, WSFederationConstants.WSIGNOUT10);
        request.addParameter(WSFederationConstants.WHR, "whr");
        request.addParameter(WSFederationConstants.WREQ, "wreq");

        assertDoesNotThrow(() -> {
            federationValidateRequestController.handleFederationRequest(response, request);
            return null;
        });
        assertEquals(HttpStatus.SC_MOVED_TEMPORARILY, response.getStatus());
        assertEquals("https://cas.example.org:8443/cas/logout?service=http://app.example5.org/wsfed-idp", response.getHeader("Location"));
    }
This is {@link WSFederationValidateRequestControllerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-idp/src/test/java/org/apereo/cas/ws/idp/web/WSFederationValidateRequestControllerTests.java