@Test
    @Ignore("This is not a test that needs to run on build - it's more for profiling the GremlinGroovyScriptEngine")
    public void shouldTest() throws Exception {
        final Random r = new Random();
        final List<Pair<String, Integer>> scripts = new ArrayList<>();
        final GremlinGroovyScriptEngine engine = new GremlinGroovyScriptEngine();
        for (int ix = 0; ix < 1000000; ix++) {
            final String script = "1 + " + ix;
            final int output = (int) engine.eval(script);
            assertEquals(1 + ix, output);

            if (ix % 1000 == 0) scripts.add(Pair.with(script, output));

            if (ix % 25 == 0) {
                final Pair<String,Integer> p = scripts.get(r.nextInt(scripts.size()));
                assertEquals(p.getValue1().intValue(), (int) engine.eval(p.getValue0()));
            }
        }
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/jsr223/GremlinGroovyScriptEngineIntegrateTest.java