@Test
    void verifyUndefined() {
        val props = new CasConfigurationProperties();
        var trigger = new TimedMultifactorAuthenticationTrigger(props, applicationContext);
        var result = trigger.isActivated(authentication, registeredService, this.httpRequest, this.httpResponse, mock(Service.class));
        assertFalse(result.isPresent());

        trigger = new TimedMultifactorAuthenticationTrigger(props, applicationContext);
        result = trigger.isActivated(null, null, this.httpRequest, this.httpResponse, mock(Service.class));
        assertFalse(result.isPresent());
    }
This is {@link TimedMultifactorAuthenticationTriggerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/trigger/TimedMultifactorAuthenticationTriggerTests.java