@Test
    void verifyGroovyResourceFileExecution() throws Throwable {
        val file = File.createTempFile("test", ".groovy");
        FileUtils.write(file, "def process(String name) { return name }", StandardCharsets.UTF_8);
        val resource = new FileSystemResource(file);

        val result = ScriptingUtils.executeGroovyScript(resource, "process", String.class, "casuser");
        assertEquals("casuser", result);
    }
This is {@link ScriptingUtilsTests}.

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