@RepeatedTest(2)
    @Transactional(transactionManager = "ticketTransactionManager", readOnly = false)
    void verifyGetSsoSessionsPerUser() throws Throwable {
        val assumption = "Ticket registry %s does not support iteration".formatted(getClass().getName());
        assumeTrue(canTicketRegistryIterate(), assumption);
        val id = UUID.randomUUID().toString();
        for (var i = 0; i < 5; i++) {
            val tgtId = TICKET_GRANTING_TICKET_ID_GENERATOR
                .getNewTicketId(TicketGrantingTicket.PREFIX);
            ticketRegistry.addTicket(new TicketGrantingTicketImpl(tgtId,
                CoreAuthenticationTestUtils.getAuthentication(id),
                NeverExpiresExpirationPolicy.INSTANCE));
        }
        try (val results = ticketRegistry.getSessionsFor(id)) {
            assertEquals(5, results.count());
        }
    }
This is {@link BaseTicketRegistryTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/registry/BaseTicketRegistryTests.java