@Test
    void verifyContextFailsValidationWithNoProviders() {
        val applicationContext = new StaticApplicationContext();
        applicationContext.refresh();
        val v = new DefaultMultifactorAuthenticationContextValidator("authn_method",
            "trusted_authn", applicationContext);
        val result = v.validate(
            MultifactorAuthenticationTestUtils.getAuthentication("casuser"),
            "invalid-context", Optional.of(MultifactorAuthenticationTestUtils.getRegisteredService()));
        assertFalse(result.isSuccess());
    }
This is {@link DefaultMultifactorAuthenticationContextValidatorTests}.

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