@Test
    @SuppressWarnings("unchecked")
    public void shouldLoadInitScript() throws Exception {
        try (SimpleClient client = TestClientFactory.createSimpleHttpClient()){
            assertEquals(2, ((Integer) (client.submit(
                    RequestMessage.build("addItUp(1,1)").addLanguage("gremlin-groovy").create()
            ).get(0).getResult().getData()).get(0)).intValue());
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerIntegrateTest.java