@Bean
    public AuthenticationEventExecutionPlanConfigurer casMultifactorTestAuthenticationEventExecutionPlanConfigurer() {
        return plan -> {
            val users = new HashMap<String, String>();
            users.put("alice", "alice");
            users.put("bob", "bob");
            users.put("mallory", "mallory");

            val credentials = new HashMap<String, String>();
            credentials.put("alice", "31415");
            credentials.put("bob", "62831");
            credentials.put("mallory", "14142");

            plan.registerAuthenticationHandler(new AcceptUsersAuthenticationHandler(StringUtils.EMPTY, null, null, null, users));
            plan.registerAuthenticationHandler(new TestOneTimePasswordAuthenticationHandler(credentials));
        };
    }
This is {@link CasMultifactorAuthenticationEventExecutionPlanTestConfiguration}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/config/CasMultifactorAuthenticationEventExecutionPlanTestConfiguration.java