@Test
        void verifyNoMatch() throws Throwable {
            val applicationContext = new StaticApplicationContext();
            applicationContext.refresh();
            val context = MockRequestContext.create(applicationContext);
            val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
            val resolver = new DefaultMultifactorAuthenticationProviderResolver(MultifactorAuthenticationPrincipalResolver.identical());
            val principal = CoreAuthenticationTestUtils.getPrincipal("casuser");
            val results = resolver.resolveEventViaAttribute(principal,
                Map.of("authlevel", List.of("strong")),
                List.of(), CoreAuthenticationTestUtils.getRegisteredService(),
                CoreAuthenticationTestUtils.getService(),
                Optional.of(context), List.of(provider), (__, mfaProvider) -> false);
            assertNull(results);
        }
This is {@link DefaultMultifactorAuthenticationProviderResolverTests}.

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