@ParameterizedTest
    @EnumSource(GoogleRecaptchaProperties.RecaptchaVersions.class)
    void verifyInstance(final GoogleRecaptchaProperties.RecaptchaVersions version) {
        val googleRecaptcha = new GoogleRecaptchaProperties()
            .setSiteKey(UUID.randomUUID().toString())
            .setSecret(UUID.randomUUID().toString())
            .setVersion(version).setVerifyUrl("http://localhost:8812");
        val validator = CaptchaValidator.getInstance(googleRecaptcha);
        assertNotNull(validator);
        assertNotNull(validator.getRecaptchaResponseParameterName());

        val request = new MockHttpServletRequest();
        val captchaResponse = UUID.randomUUID().toString();
        request.addParameter(validator.getRecaptchaResponseParameterName(), captchaResponse);
        assertNotNull(validator.getRecaptchaResponse(request));
    }
This is {@link CaptchaValidatorTests}.

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