@Test
    void verifyNotSupportingTrigger() throws Throwable {
        val trigger = getMultifactorAuthenticationTrigger();
        when(trigger.supports(any(), any(), any(), any())).thenReturn(false);
        val strategy = new DefaultMultifactorAuthenticationTriggerSelectionStrategy(List.of(trigger));
        assertFalse(strategy.getMultifactorAuthenticationTriggers().isEmpty());
        val registeredService = MultifactorAuthenticationTestUtils.getRegisteredService();
        when(registeredService.getMultifactorAuthenticationPolicy().isBypassEnabled()).thenReturn(true);
        val result = strategy.resolve(new MockHttpServletRequest(), new MockHttpServletResponse(),
            registeredService,
            MultifactorAuthenticationTestUtils.getAuthentication("casuser"),
            MultifactorAuthenticationTestUtils.getService("https://www.example.org"));
        assertTrue(result.isEmpty());
    }
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