@Test
    void verifyTicketIsExpiredByCount() {
        IntStream.range(0, NUMBER_OF_USES)
            .forEach(i -> ticket.grantServiceTicket("test", RegisteredServiceTestUtils.getService(),
                NeverExpiresExpirationPolicy.INSTANCE, false, serviceTicketSessionTrackingPolicy));
        assertTrue(ticket.isExpired());
    }
Test cases for {@link MultiTimeUseOrTimeoutExpirationPolicy}.

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