@Test
    void verifyWithoutTicketGrantingTicket() throws Throwable {
        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.WSIGNIN10);
        request.addParameter(WSFederationConstants.WCTX, UUID.randomUUID().toString());

        val tgt = new MockTicketGrantingTicket("casuser");
        ticketRegistry.addTicket(tgt);

        val service = RegisteredServiceTestUtils.getService(registeredService.getServiceId());
        service.getAttributes().put(WSFederationConstants.WREPLY, List.of(registeredService.getServiceId()));
        val st = new MockServiceTicket("123456", service, tgt);
        ticketRegistry.addTicket(st);

        request.addParameter(CasProtocolConstants.PARAMETER_TICKET, st.getId());

        ticketGrantingTicketCookieGenerator.addCookie(request, response, tgt.getId());
        request.setCookies(response.getCookies());

        val mv = federationValidateRequestCallbackController.handleFederationRequest(response, request);
        assertEquals(CasWebflowConstants.VIEW_ID_POST_RESPONSE, mv.getViewName());
    }
This is {@link WSFederationValidateRequestCallbackControllerTests}.

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