@Bean
            public AuthenticationEventExecutionPlanConfigurer authenticationPlanConfigurer(
                @Qualifier(ServicesManager.BEAN_NAME) final ServicesManager servicesManager) {
                return plan -> {
                    plan.registerAuthenticationHandler(new SimpleTestUsernamePasswordAuthenticationHandler("Handler1"));
                    plan.registerAuthenticationHandler(new SimpleTestUsernamePasswordAuthenticationHandler("Handler2"));
                    val h3 = mock(MultifactorAuthenticationHandler.class);
                    when(h3.getName()).thenReturn("Handler3");
                    plan.registerAuthenticationHandler(h3);

                    plan.registerAuthenticationHandlerResolver(new ByCredentialSourceAuthenticationHandlerResolver());

                    val serviceSelectionPlan = new DefaultAuthenticationServiceSelectionPlan();
                    serviceSelectionPlan.registerStrategy(new DefaultAuthenticationServiceSelectionStrategy());

                    plan.registerAuthenticationHandlerResolver(new RegisteredServiceAuthenticationHandlerResolver(servicesManager, serviceSelectionPlan));
                };
            }
This is {@link DefaultAuthenticationEventExecutionPlanTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/DefaultAuthenticationEventExecutionPlanTests.java