@Test
    void verifyResponseWithNoTicket() {
        val request = new MockHttpServletRequest();
        request.setParameter(SamlProtocolConstants.CONST_PARAM_TARGET, "service");
        val impl = samlServiceFactory.createService(request);
        val response = new SamlServiceResponseBuilder(servicesManager, this.urlValidator)
            .build(impl, null, CoreAuthenticationTestUtils.getAuthentication());
        assertNotNull(response);
        assertEquals(Response.ResponseType.REDIRECT, response.responseType());
        assertFalse(response.url().contains(SamlProtocolConstants.CONST_PARAM_ARTIFACT.concat("=")));
    }
Test cases for {@link SamlService}.

@author Scott Battaglia
@since 3.1
support/cas-server-support-saml/src/test/java/org/apereo/cas/support/saml/authentication/principal/SamlServiceTests.java