@RepeatedTest(1)
        void verifyRegistryQuery() throws Throwable {
            val user = UUID.randomUUID().toString();
            val tgt = new MockTicketGrantingTicket(user);
            val st = new MockServiceTicket("ST-123456", RegisteredServiceTestUtils.getService(), tgt);
            val registry = getNewTicketRegistry();
            registry.addTicket(tgt);
            registry.addTicket(st);

            val count = registry.countSessionsFor(user);
            assertEquals(1, count);
            assertNotEquals(0, registry.query(TicketRegistryQueryCriteria.builder()
                    .type(TicketGrantingTicket.PREFIX).build()).size());
        }
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