@Test
    void verifySelectionMenu() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val account = PasswordlessUserAccount.builder()
            .username("casuser")
            .name("casuser")
            .email("casuser@example.org")
            .multifactorAuthenticationEligible(TriStateBoolean.TRUE)
            .delegatedAuthenticationEligible(TriStateBoolean.TRUE)
            .build();
        PasswordlessWebflowUtils.putPasswordlessAuthenticationAccount(context, account);
        assertThrows(IllegalStateException.class, () -> prepareLoginAction.execute(context));

        PasswordlessWebflowUtils.putPasswordlessAuthenticationAccount(context, account.withAllowSelectionMenu(true));
        assertNull(prepareLoginAction.execute(context));
        assertTrue(PasswordlessWebflowUtils.isMultifactorAuthenticationAllowed(context));
        assertTrue(PasswordlessWebflowUtils.isDelegatedAuthenticationAllowed(context));
        assertTrue(PasswordlessWebflowUtils.isPasswordlessAuthenticationEnabled(context));
    }
This is {@link PreparePasswordlessSelectionMenuActionTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-passwordless-webflow/src/test/java/org/apereo/cas/web/flow/PreparePasswordlessSelectionMenuActionTests.java