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

        val resolver = new MultifactorAuthenticationProviderBypassAuditResourceResolver();
        val jp = mock(JoinPoint.class);
        val args = new Object[]{
            MultifactorAuthenticationTestUtils.getAuthentication("casuser"),
            MultifactorAuthenticationTestUtils.getRegisteredService(),
            TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext)
        };
        when(jp.getArgs()).thenReturn(args);
        when(jp.getTarget()).thenReturn(new AlwaysAllowMultifactorAuthenticationProviderBypassEvaluator(applicationContext));
        val outcome = resolver.resolveFrom(jp, new Object());
        assertTrue(outcome.length > 0);
        assertNotNull(resolver.resolveFrom(jp, new RuntimeException("failed")));

        when(jp.getArgs()).thenReturn(null);
        assertEquals(0, resolver.resolveFrom(jp, new Object()).length);
    }
This is {@link MultifactorAuthenticationProviderBypassAuditResourceResolverTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/bypass/audit/MultifactorAuthenticationProviderBypassAuditResourceResolverTests.java