@Override
        public void run() {
            try {
                shellScript.setBinding(CollectionUtils.wrap("attributes", attributes));
                val returnValue = shellScript.execute(ArrayUtils.EMPTY_OBJECT_ARRAY, List.class);
                assertEquals(1, returnValue.size());
                assertEquals(expectedAttribute, returnValue.getFirst());
            } catch (final Throwable e) {
                throw new RuntimeException(e);
            }
        }
This is {@link GroovyShellScriptTests}.

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