@Test
        void verifyConcurrentAddTicket() {
            val principalId = UUID.randomUUID().toString();
            val testHasFailed = new AtomicBoolean();
            val threads = new ArrayList<Thread>();
            for (var i = 1; i <= 100; i++) {
                val runnable = new RunnableAddTicketGrantingTicket(ticketRegistry, principalId, 100);
                val thread = Thread.ofVirtual();
                thread.name("Thread-" + i);
                thread.uncaughtExceptionHandler((t, e) -> {
                    LOGGER.error(e.getMessage(), e);
                    testHasFailed.set(true);
                });
                threads.add(thread.start(runnable));
            }
            for (val thread : threads) {
                try {
                    thread.join();
                } catch (final Throwable e) {
                    fail(e);
                }
            }
            if (testHasFailed.get()) {
                fail("Test failed");
            }
        }
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