@RepeatedTest(1)
        void verifyGetExpiredTicketLogoutPerformed() throws Throwable {
            val registry = new DefaultTicketRegistry(mock(TicketSerializationManager.class), new DefaultTicketCatalog(),
                    applicationContext);
            val originalAuthn = CoreAuthenticationTestUtils.getAuthentication();
            val ticketGrantingTicket = new TicketGrantingTicketImpl(BaseTicketRegistryTests.TestTicketIdentifiers.generate().ticketGrantingTicketId(),
                    originalAuthn, new HardTimeoutExpirationPolicy(1));
            registry.addTicket(ticketGrantingTicket);
            Thread.sleep(1500);
            val tgtId = ticketGrantingTicket.getId();
            val tgt = registry.getTicket(tgtId);
            assertNull(tgt);
            val internalTgt = registry.getMapInstance().get(tgtId);
            assertNull(internalTgt);
            await().atMost(3, TimeUnit.SECONDS).untilAsserted(() -> assertTrue(LogoutManagerTestConfiguration.getNbCalls() > 0));
        }
Test case to test the DefaultTicketRegistry based on test cases to test all
Ticket Registries.

@author Scott Battaglia
@since 3.0.0
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/registry/DefaultTicketRegistryTests.java