@Test
    void verifyCaptchaValidationSkipped() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        val data = "{\"success\": true }";
        context.setParameter(GoogleCaptchaV2Validator.REQUEST_PARAM_RECAPTCHA_RESPONSE, data);

        val service = RegisteredServiceTestUtils.getService(UUID.randomUUID().toString());
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(service.getId());
        registeredService.getProperties().put(RegisteredServiceProperty.RegisteredServiceProperties.CAPTCHA_ENABLED.getPropertyName(),
            new DefaultRegisteredServiceProperty("false"));

        servicesManager.save(registeredService);
        WebUtils.putServiceIntoFlowScope(context, service);
        val result = validateCaptchaAction.execute(context);
        assertNull(result);
    }
This is {@link ValidateCaptchaActionTests}.

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