@Test
    void verifyGroovyReturnTypeMismatch() 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);
        assertNull(ScriptingUtils.getObjectInstanceFromGroovyResource(resource,
            ArrayUtils.EMPTY_CLASS_ARRAY, ArrayUtils.EMPTY_OBJECT_ARRAY,
            Map.class));
    }
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