@Test
    void verifyUnknownUser() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setCurrentEvent(new Event(this, "processing"));
        context.setParameter(PasswordlessRequestParser.PARAMETER_USERNAME, "unknown");
        assertThrows(UnauthorizedServiceException.class, () -> displayBeforePasswordlessAuthenticationAction.execute(context));
    }
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