HadoopGremlinPlugin extends AbstractGremlinPlugin { public static HadoopGremlinPlugin instance() { return plugin; } HadoopGremlinPlugin(); @Override Optional<Customizer[]> getCustomizers(final String scriptEngineName); @Override boolean requireRestart(); static HadoopGremlinPlugin instance();  }
@Test public void shouldAddBindingsForFileSystem() { final GremlinScriptEngineManager manager = new DefaultGremlinScriptEngineManager(); manager.addPlugin(HadoopGremlinPlugin.instance()); final GremlinScriptEngine engine = manager.getEngineByName(MockGremlinScriptEngineFactory.ENGINE_NAME); final Bindings b = engine.getBindings(ScriptContext.GLOBAL_SCOPE); assertThat(b.containsKey("hdfs"), is(true)); assertThat(b.containsKey("fs"), is(true)); assertThat(b.get("hdfs"), instanceOf(FileSystemStorage.class)); assertThat(b.get("fs"), instanceOf(FileSystemStorage.class)); }