@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setParameter("username", "casuser");

        val event = acceptUserGraphicsForAuthenticationAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
        assertTrue(WebUtils.containsGraphicalUserAuthenticationUsername(context));

        val credential = WebUtils.getCredential(context, UsernamePasswordCredential.class);
        assertNotNull(credential);
        assertEquals(0, credential.getPassword().length);
    }
This is {@link AcceptUserGraphicsForAuthenticationActionTests}.

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