@Test
    void verifyBadResponse() {
        try (val webServer = new MockWebServer()) {
            webServer.start();
            val secret = UUID.randomUUID().toString();
            val props = new GoogleRecaptchaProperties()
                .setScore(0.1)
                .setVersion(GoogleRecaptchaProperties.RecaptchaVersions.GOOGLE_RECAPTCHA_V2)
                .setSecret(secret)
                .setVerifyUrl("http://localhost:%s".formatted(webServer.getPort()));
            val validator = CaptchaValidator.getInstance(props);
            val response = UUID.randomUUID().toString();
            assertFalse(validator.validate(response, "Mozilla/5.0"));
        }
    }
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