@Test
    void verifyNoProvider() {
        val props = new CasConfigurationProperties();
        val trigger = new RestEndpointMultifactorAuthenticationTrigger(props,
            new DefaultMultifactorAuthenticationProviderResolver(MultifactorAuthenticationPrincipalResolver.identical()),
            applicationContext);
        var result = trigger.isActivated(authentication, registeredService, this.httpRequest, this.httpResponse, mock(Service.class));
        assertTrue(result.isEmpty());
        props.getAuthn().getMfa().getTriggers().getRest().setUrl("http://localhost:%s".formatted(1234));
        result = trigger.isActivated(null, null, 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