@Test
    void checkAuthorizationByRangePassEndTime() {
        val authz = new TimeBasedRegisteredServiceAccessStrategy();
        authz.setStartingDateTime(ZonedDateTime.now(ZoneOffset.UTC).toString());
        authz.setEndingDateTime(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(30).toString());
        assertTrue(authz.isServiceAccessAllowed(RegisteredServiceTestUtils.getRegisteredService(), CoreAuthenticationTestUtils.getService()));
    }
The {@link TimeBasedRegisteredServiceAccessStrategyTests} is responsible for
running test cases for {@link TimeBasedRegisteredServiceAccessStrategy}.

@author Misagh Moayyed
@since 4.2
core/cas-server-core-services/src/test/java/org/apereo/cas/services/TimeBasedRegisteredServiceAccessStrategyTests.java