@Bean
        public FlowDefinitionRegistry accountProfileFlowRegistry() {
            val viewState = mock(ViewState.class);
            when(viewState.getRenderActionList()).thenReturn(new ActionList());

            val flowDefn = mock(Flow.class);
            when(flowDefn.containsState(anyString())).thenReturn(true);
            when(flowDefn.getState(anyString())).thenReturn(viewState);

            val registry = mock(FlowDefinitionRegistry.class);
            when(registry.getFlowDefinitionIds()).thenReturn(new String[]{CasWebflowConfigurer.FLOW_ID_ACCOUNT});
            when(registry.getFlowDefinition(anyString())).thenReturn(flowDefn);
            return registry;
        }
This is {@link DuoSecurityMultifactorAccountProfileWebflowConfigurerTests}.

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