@RepeatedTest(2)
    void verifyLargeServiceUrl() throws Exception {
        val attributes = new HashMap<String, List<Object>>();
        val principal = RegisteredServiceTestUtils.getPrincipal(UUID.randomUUID().toString(), attributes);
        val originalAuthn = RegisteredServiceTestUtils.getAuthentication(principal, attributes);

        val ticketGrantingTicketId = TestTicketIdentifiers.generate().ticketGrantingTicketId();
        val tgt = new TicketGrantingTicketImpl(ticketGrantingTicketId, originalAuthn,
            new TicketGrantingTicketExpirationPolicy(5000, 2000));
        newTicketRegistry.addTicket(tgt);

        val paths = IntStream.rangeClosed(1, 10).mapToObj(i -> RandomUtils.randomAlphabetic(10)).collect(Collectors.joining("/"));
        val service = RegisteredServiceTestUtils.getService("https://apereo.github.io:8443/cas/" + paths + "/page.html");
        servicesManager.save(RegisteredServiceTestUtils.getRegisteredService(service.getId()));

        val serviceTicket = tgt.grantServiceTicket(UUID.randomUUID().toString(),
            service, new MultiTimeUseOrTimeoutExpirationPolicy.ServiceTicketExpirationPolicy(1, 100),
            true, TicketTrackingPolicy.noOp());
        val addedServiceTicket = newTicketRegistry.addTicket(serviceTicket);
        assertTrue(addedServiceTicket.isStateless());

        val retrievedTicket = (RenewableServiceTicket) newTicketRegistry.getTicket(addedServiceTicket.getId());
        assertNotNull(retrievedTicket);
    }
This is {@link StatelessTicketRegistryTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-stateless-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/StatelessTicketRegistryTests.java