@Test
    void verifyOperation() {
        val loaders = CasConfigurationPropertiesSourceLocator.getConfigurationPropertiesLoaders();
        val groovyLoader = loaders
            .stream()
            .filter(loader -> loader.getName()
            .equals(GroovyConfigurationPropertiesLoader.class.getSimpleName()))
            .findFirst()
            .orElseThrow();
        val resource = new ClassPathResource("configuration.groovy");
        assertTrue(groovyLoader.supports(resource));
        val properties = groovyLoader.load(resource, environment, "test", CipherExecutor.noOpOfStringToString());
        assertEquals("test::alone", properties.getProperty("cas.authn.accept.users"));
        assertEquals("true", properties.getProperty("cas.service-registry.core.init-from-json"));
        assertEquals("Static", properties.getProperty("cas.authn.accept.name"));
    }
This is {@link GroovyConfigurationPropertiesLoaderTests}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-scripting/src/test/java/org/apereo/cas/util/GroovyConfigurationPropertiesLoaderTests.java