private static MultifactorAuthenticationTrigger getMultifactorAuthenticationTrigger() throws Throwable {
        val trigger = mock(MultifactorAuthenticationTrigger.class);
        when(trigger.supports(any(), any(), any(), any())).thenReturn(true);
        when(trigger.isActivated(any(), any(), any(), any(), any()))
            .thenReturn(Optional.of(new TestMultifactorAuthenticationProvider()));
        return trigger;
    }
This is {@link DefaultMultifactorAuthenticationTriggerSelectionStrategyTests}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/DefaultMultifactorAuthenticationTriggerSelectionStrategyTests.java