@Test
    void verifyCaptchaValidated() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, initializeCaptchaAction.execute(context).getId());
        assertNotNull(WebUtils.getRecaptchaSiteKey(context));
        assertTrue(context.getFlowScope().contains("recaptchaLoginEnabled"));
    }
This is {@link InitializeCaptchaActionTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-captcha/src/test/java/org/apereo/cas/web/flow/InitializeCaptchaActionTests.java