@Test
    void verifyOperation() {
        val applicationContext = new StaticApplicationContext();
        applicationContext.refresh();

        val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val principal = CoreAuthenticationTestUtils.getPrincipal(Map.of("cn", List.of("example")));
        val authentication = CoreAuthenticationTestUtils.getAuthentication(principal);
        val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
        val policy = new DefaultRegisteredServiceMultifactorPolicy();
        when(registeredService.getMultifactorAuthenticationPolicy()).thenReturn(policy);

        val eval = new NeverAllowMultifactorAuthenticationProviderBypassEvaluator(applicationContext);
        assertTrue(eval.shouldMultifactorAuthenticationProviderExecute(authentication, registeredService,
                provider, new MockHttpServletRequest(), CoreAuthenticationTestUtils.getService()));
    }
This is {@link NeverAllowMultifactorAuthenticationProviderBypassEvaluatorTests}.

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