public class GroovyParserTest extends TestCase {
public void testParse() {
GroovyObject go = GroovyParser.parse("class Test { \n String doStuff() { return \"Do stuff\" } }");
String result = (String) go.invokeMethod("doStuff", null);
assertEquals("Do stuff", result);
//GroovyEngine ge = new GroovyEngine();
GroovyShell sh = new GroovyShell();
List<?> evaluate = (List<?>) sh.evaluate("[1, 2, 3]");