DefaultGroovyScriptService implements GroovyScriptService { @Override public Object evaluate(String script, Map<String, Object> variables) { return evaluate(script, variables, null); }  @Override Object evaluate(String script, Map<String, Object> variables); @Override Object evaluate(String script, Map<String, Object> variables, List<Class<?>> extraAllowedClasses); @Override Object validateScript(String script); static final String CACHE_NAME; }
@Test public void testScriptOne() { String result = (String) groovyScriptService.evaluate("return \"testOne\";", null); assertEquals(TEST_ONE, result); }