@Test
    void verifyShouldProceed() {
        val properties = new MultifactorAuthenticationProviderBypassProperties();

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

        val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val eval = new HttpRequestMultifactorAuthenticationProviderBypassEvaluator(properties, provider.getId(), applicationContext);

        val principal = CoreAuthenticationTestUtils.getPrincipal(Map.of("cn", List.of("example")));
        val authentication = CoreAuthenticationTestUtils.getAuthentication(principal);
        val registeredService = CoreAuthenticationTestUtils.getRegisteredService();

        val request = new MockHttpServletRequest();
        assertTrue(eval.shouldMultifactorAuthenticationProviderExecute(authentication, registeredService,
            provider, request, CoreAuthenticationTestUtils.getService()));

    }
This is {@link HttpRequestMultifactorAuthenticationProviderBypassEvaluatorTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication-mfa/src/test/java/org/apereo/cas/authentication/bypass/HttpRequestMultifactorAuthenticationProviderBypassEvaluatorTests.java