@BeforeEach
    void initialize() throws Exception {
        this.context = MockRequestContext.create(applicationContext);
        WebUtils.putServiceIntoFlowScope(context, CoreAuthenticationTestUtils.getWebApplicationService());
        TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val authentication = CoreAuthenticationTestUtils.getAuthentication();
        WebUtils.putAuthentication(authentication, context);
        val builder = mock(AuthenticationResultBuilder.class);
        when(builder.getInitialAuthentication()).thenReturn(Optional.of(authentication));
        when(builder.collect(any(Authentication.class))).thenReturn(builder);
        WebUtils.putAuthenticationResultBuilder(builder, context);
    }
This is {@link RadiusAuthenticationWebflowEventResolverFailureTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-radius-mfa/src/test/java/org/apereo/cas/adaptors/radius/web/flow/RadiusAuthenticationWebflowEventResolverFailureTests.java