@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setCurrentEvent(new Event(this, "processing"));
        context.setParameter(PasswordlessRequestParser.PARAMETER_USERNAME, "casuser");
        assertEquals(CasWebflowConstants.TRANSITION_ID_CREATE,
            displayBeforePasswordlessAuthenticationAction.execute(context).getId());
        val result = createPasswordlessAuthenticationTokenAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        val token = result.getAttributes().get("result", PasswordlessAuthenticationToken.class);
        assertNotNull(token);
    }
This is {@link DisplayBeforePasswordlessAuthenticationActionTests}.

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