@RepeatedTest(2)
        void verifyCountForService() throws Throwable {
            val service = RegisteredServiceTestUtils.getService(UUID.randomUUID().toString());
            val registry = getNewTicketRegistry();
            val user = UUID.randomUUID().toString();

            for (var i = 0; i < 5; i++) {
                val tgt = new MockTicketGrantingTicket(user);
                val st = tgt.grantServiceTicket(service, TicketTrackingPolicy.noOp());
                registry.addTicket(st);
                registry.updateTicket(tgt);
            }
            val count = registry.countTicketsFor(service);
            assertEquals(5, count);
        }
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