@Test
    void verifyByProps() throws Throwable {
        val strategy = new DefaultCaptchaActivationStrategy(mock(ServicesManager.class));
        val context = MockRequestContext.create();

        val properties = new GoogleRecaptchaProperties().setEnabled(true);
        assertTrue(strategy.shouldActivate(context, properties).isPresent());

        properties.setEnabled(false);
        assertTrue(strategy.shouldActivate(context, properties).isEmpty());
    }
This is {@link DefaultCaptchaActivationStrategyTests}.

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