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

        try {
            final Client client = cluster.connect();
            assertEquals(5, client.submit("g.inject(5)").all().get().get(0).getInt());
        } finally {
            cluster.close();
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java