@Test
    void verifyNoProviders() {
        try (val webServer = new MockWebServer(TestMultifactorAuthenticationProvider.ID, HttpStatus.OK)) {
            webServer.start();

            val appContext = new StaticApplicationContext();
            appContext.refresh();

            val props = new CasConfigurationProperties();
            props.getAuthn().getMfa().getTriggers().getRest().setUrl("http://localhost:%s".formatted(webServer.getPort()));
            val trigger = new RestEndpointMultifactorAuthenticationTrigger(props,
                new DefaultMultifactorAuthenticationProviderResolver(MultifactorAuthenticationPrincipalResolver.identical()),
                appContext);
            val result = trigger.isActivated(authentication, registeredService, this.httpRequest, this.httpResponse, mock(Service.class));
            assertTrue(result.isEmpty());
        }
    }
This is {@link RestEndpointMultifactorAuthenticationTriggerTests}.

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