@Test
    public void shouldWorkWithGraphSONSerializer() throws Exception {
        final Cluster cluster = TestClientFactory.build(new PayloadSerializingInterceptor(new GraphSONMessageSerializerV4()))
                .serializer(Serializers.GRAPHSON_V4.simpleInstance()).create();

        try {
            final Client client = cluster.connect();
            final RequestOptions ro = RequestOptions.build()
                    .addG("gmodern")
                    .language("gremlin-lang")
                    .bulkResults(true)
                    .create();
            assertEquals(6, client.submit("g.V()", ro).all().get().size());
        } finally {
            cluster.close();
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java