@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setParameter("username", "casuser");
        val event = displayUserGraphicsBeforeAuthenticationAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
        assertTrue(WebUtils.containsGraphicalUserAuthenticationImage(context));
        assertTrue(WebUtils.containsGraphicalUserAuthenticationUsername(context));
    }
This is {@link DisplayUserGraphicsBeforeAuthenticationActionTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-gua/src/test/java/org/apereo/cas/web/flow/DisplayUserGraphicsBeforeAuthenticationActionTests.java