@ParameterizedTest
    @MethodSource("ticketProvider")
    void verifyTicketCompactors(final Ticket ticket) throws Throwable {
        val compactors = applicationContext.getBeansOfType(TicketCompactor.class).values();
        for (val compactor : compactors) {
            if (compactor.getTicketType().isAssignableFrom(ticket.getClass())) {
                val compacted = compactor.compact(ticket);
                assertNotNull(compacted);
                val expanded = compactor.expand(compacted);
                assertNotNull(expanded);
            }
        }
    }
This is {@link StatelessTicketManagementTests}.

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