@Test
        void verifyDifferentLoginSamePrincipal() throws Throwable {
            val principalId = UUID.randomUUID().toString();
            for (var i = 0; i < 3; i++) {
                addTicketAndWait(principalId);
            }
            val keyGenerator = redisKeyGeneratorFactory.getRedisKeyGenerator(Principal.class.getName()).orElseThrow();
            val key = keyGenerator.forId(principalId);
            assertEquals(1, ticketRedisTemplate.boundZSetOps(key).size());
            assertEquals(1, ticketRegistry.countSessionsFor(principalId));
        }
Unit test for {@link RedisTicketRegistry}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-redis-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/RedisServerTicketRegistryTests.java