@Override
            public void run() {
                val ptGenerator = new ProxyTicketIdGenerator(10, StringUtils.EMPTY);
                for (var i = 0; i < max; i++) {
                    val proxyTicket = proxyGrantingTicket.grantProxyTicket(ptGenerator.getNewTicketId(ProxyTicket.PREFIX),
                            service, new HardTimeoutExpirationPolicy(20), serviceTicketSessionTrackingPolicy);
                    FunctionUtils.doUnchecked(__ -> ticketRegistry.addTicket(proxyTicket));
                }
            }
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