private void addTicketsToRegistry(final TicketRegistry registry,
                                      final int tgtCount, final int stCount) throws Throwable {
        for (var i = 0; i < tgtCount; i++) {
            val ticket = new TicketGrantingTicketImpl(GENERATOR.getNewTicketId("TGT"),
                CoreAuthenticationTestUtils.getAuthentication(), TEST_EXP_POLICY);
            registry.addTicket(ticket);
            val testService = RegisteredServiceTestUtils.getService("junit");
            for (var j = 0; j < stCount; j++) {
                registry.addTicket(ticket.grantServiceTicket(GENERATOR.getNewTicketId("ST"),
                    testService, TEST_EXP_POLICY,
                    false, serviceTicketSessionTrackingPolicy));
            }
        }
    }
Unit test for {@link TicketRegistryHealthIndicator} class that involves
{@link JpaTicketRegistry}.

@author Marvin S. Addison
@since 3.5.0
support/cas-server-support-jpa-ticket-registry/src/test/java/org/apereo/cas/monitor/SessionHealthIndicatorJpaTests.java