@Test
    public void shouldAddBaseScriptClass() throws Exception {
        final ScriptEngine engine = new GremlinGroovyScriptEngine(
                new ConfigurationGroovyCustomizer("ScriptBaseClass", BaseScriptForTesting.class.getName()));

        assertEquals("hello, stephen", engine.eval("hello('stephen')"));

        final Bindings b = new SimpleBindings();
        b.put("registry", new HashMap<String,Object>(){{
            put("xxx", String.class.getSimpleName());
        }});

        assertEquals(String.class.getSimpleName(), engine.eval("typeOf('xxx')", b));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngineConfigTest.java