@Before
    public void setUp() throws Exception {
        final InputStream stream = getSettingsInputStream();
        final Settings settings = Settings.read(stream);

        final Settings overridenSettings = overrideSettings(settings);
        final String prop = Paths.get(AbstractGremlinServerIntegrationTest.class.getResource("tinkergraph-empty.properties").toURI()).toString();
        overridenSettings.graphs.put("graph", prop);
        final String script = Paths.get(AbstractGremlinServerIntegrationTest.class.getResource("generate.groovy").toURI()).toString();
        overridenSettings.scriptEngines.get("gremlin-groovy").plugins
                .get("org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin")
                .put("files", Collections.singletonList(script));

        this.server = new GremlinServer(overridenSettings);

        server.start().join();
    }
Starts and stops an instance for each executed test.

@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-console/src/test/java/org/apache/tinkerpop/gremlin/console/jsr223/AbstractGremlinServerIntegrationTest.java