private RequestContext verifyOperation(final MultifactorAuthenticationProvider provider, final String eventId) throws Exception {
        val context = MockRequestContext.create(applicationContext);

        WebUtils.putServiceIntoFlowScope(context, CoreAuthenticationTestUtils.getWebApplicationService());
        val authentication = CoreAuthenticationTestUtils.getAuthentication();
        WebUtils.putAuthentication(authentication, context);

        servicesManager.save(RegisteredServiceTestUtils.getRegisteredService("registration.duo.com"));
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, provider);

        val event = determineDuoUserAccountAction.execute(context);
        assertEquals(eventId, event.getId());
        return context;
    }
This is {@link DuoSecurityDetermineUserAccountActionTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-duo/src/test/java/org/apereo/cas/adaptors/duo/web/flow/action/DuoSecurityDetermineUserAccountActionTests.java