@Test
    void verifyLoginRenewWithNoToken() 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.WREFRESH, "5000");
        request.addParameter(WSFederationConstants.WA, WSFederationConstants.WSIGNIN10);

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

        assertDoesNotThrow(() -> federationValidateRequestController.handleFederationRequest(response, request));
        assertEquals(HttpStatus.SC_MOVED_TEMPORARILY, response.getStatus());
        val builder = new URIBuilder(response.getHeader("Location"));
        assertTrue(builder.getQueryParams().stream().anyMatch(p -> p.getName().equals(CasProtocolConstants.PARAMETER_SERVICE)));
        assertTrue(builder.getQueryParams().stream().anyMatch(p -> p.getName().equals(CasProtocolConstants.PARAMETER_RENEW)));
        assertTrue(builder.getQueryParams().stream().anyMatch(p -> p.getName().equals(WSFederationConstants.WTREALM)));
        assertTrue(builder.getQueryParams().stream().anyMatch(p -> p.getName().equals(WSFederationConstants.WREPLY)));
    }
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