@Bean
        public CasWebflowConfigurer testCasWebflowConfigurer() {
            return new AbstractCasWebflowConfigurer(flowBuilderServices, flowDefinitionRegistry,
                applicationContext, casProperties) {
                @Override
                protected void doInitialize() {
                    val flow = getLoginFlow();

                    if (flow != null) {
                        val viewFactory = createExternalRedirectViewFactory("github.com");
                        val externalViewState = createViewState(flow, "exampleViewExternal", viewFactory);
                        externalViewState.setCaption("View Caption");

                        val valueFactory = mock(VariableValueFactory.class);
                        when(valueFactory.createInitialValue(any())).thenReturn(new Object());
                        externalViewState.addVariable(new ViewVariable("var1", valueFactory));

                        createViewState(flow, "exampleViewUnknownFactory", mock(ViewFactory.class));
                        val executingViewFactory = mock(ActionExecutingViewFactory.class);
                        when(executingViewFactory.getAction()).thenReturn(createEvaluateAction("example"));
                        createViewState(flow, "exampleViewOtherFactory", executingViewFactory);

                        val subflow = createSubflowState(flow, "subflowStateId", "logout");
                        subflow.getEntryActionList().add(new AnnotatedAction(createSetAction("annotated", "true")));
                        subflow.getEntryActionList().add(new AnnotatedAction(createEvaluateAction("flowScope.annotated=true")));

                        flow.getEndActionList().add(createSetAction("endOfFlow", "true"));
                        val transition = new Transition(new DefaultTransitionCriteria(
                            new LiteralExpression("input-global")), new DefaultTargetStateResolver("target"));
                        flow.getGlobalTransitionSet().add(transition);
                    }
                }
            };
        }
This is {@link SpringWebflowEndpointTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/SpringWebflowEndpointTests.java