@Test
    void verifyValidServiceTicket() throws Throwable {
        val service = RegisteredServiceTestUtils.getService("https://www.casinthecloud.com");
        val ctx = CoreAuthenticationTestUtils.getAuthenticationResult(getAuthenticationSystemSupport(), service);

        val tId = getCentralAuthenticationService().createTicketGrantingTicket(ctx);
        val sId = getCentralAuthenticationService().grantServiceTicket(tId.getId(), service, ctx);

        val request = new MockHttpServletRequest();
        request.addParameter(CasProtocolConstants.PARAMETER_SERVICE, service.getId());
        request.addParameter(CasProtocolConstants.PARAMETER_TICKET, sId.getId());

        val mv = proxyValidateController.handleRequestInternal(request, new MockHttpServletResponse());
        assertTrue(Objects.requireNonNull(mv.getView()).toString().contains(SUCCESS));
    }
This is {@link ProxyValidateControllerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-validation/src/test/java/org/apereo/cas/web/ProxyValidateControllerTests.java