@Test
    void verifySsoParticipationByAuthenticationDateFails() {
        val authn = mock(Authentication.class);
        when(authn.getAuthenticationDate()).thenReturn(ZonedDateTime.now(ZoneOffset.UTC).minusSeconds(10));

        val state = mock(AuthenticationAwareTicket.class);
        when(state.getAuthentication()).thenReturn(authn);
        val chain = new ChainingRegisteredServiceSingleSignOnParticipationPolicy();
        chain.addPolicy(new AuthenticationDateRegisteredServiceSingleSignOnParticipationPolicy(TimeUnit.SECONDS, 1, 0));
        assertFalse(chain.shouldParticipateInSso(RegisteredServiceTestUtils.getRegisteredService(), state));
    }
This is {@link ChainingRegisteredServiceSingleSignOnParticipationPolicyTests}.

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