@Test
    void verifyResponseWithNoTicketAndNoParameterInServiceURL() {
        val request = new MockHttpServletRequest();
        request.setParameter(CasProtocolConstants.PARAMETER_SERVICE, "http://foo.com/");
        val impl = webApplicationServiceFactory.createService(request);
        val response = new WebApplicationServiceResponseBuilder(servicesManager, SimpleUrlValidator.getInstance())
            .build(impl, null,
                RegisteredServiceTestUtils.getAuthentication());
        assertNotNull(response);
        assertEquals(Response.ResponseType.REDIRECT, response.responseType());
        assertFalse(response.url().contains("ticket="));
        assertEquals("http://foo.com/", response.url());
    }
@author Scott Battaglia
@author Arnaud Lesueur
@since 3.1
core/cas-server-core-services/src/test/java/org/apereo/cas/authentication/principal/SimpleWebApplicationServiceImplTests.java