@Ignore("Server doesn't currently support transactions.")
    @Test
    public void shouldExecuteSessionlessScriptOnTransactionalGraph() throws Exception {

        final Cluster cluster = TestClientFactory.open();
        final Client client = cluster.connect();

        // this line is important because it tests GraphTraversal which has a certain transactional path
        final Vertex vertexRequest1 = client.submit("g.addV().property(\"name\",\"stephen\")", groovyRequestOptions)
                .all().get().get(0).getVertex();

        final Vertex vertexRequest2 = client.submit("graph.vertices().next()", groovyRequestOptions)
                .all().get().get(0).getVertex();
        assertEquals(vertexRequest1.id(), vertexRequest2.id());

        // this line is important because it tests the other transactional path
        client.submit("graph.addVertex(\"name\",\"marko\")", groovyRequestOptions).all().get().get(0).getVertex();

        assertEquals(2, client.submit("g.V().count()", groovyRequestOptions).all().get().get(0).getLong());

        cluster.close();
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java