@Test
    public void shouldHavePartialContentWithLongResultsCollection() throws Exception {
        try (SimpleClient client = TestClientFactory.createSimpleHttpClient()) {
             final RequestMessage request = RequestMessage.build("g.inject('a').repeat(inject('a')).times(100)").create();
            final List<ResponseMessage> responses = client.submit(request);
            assertThat(responses.size(), Matchers.greaterThan(1));

            // first message have no status
            assertNull(responses.get(0).getStatus());
            // first message contains data
            assertFalse(responses.get(0).getResult().getData().isEmpty());
            // second one contains last piece of data
            assertEquals(HttpResponseStatus.OK, responses.get(1).getStatus().getCode());
            // second message contains data
            assertFalse(responses.get(1).getResult().getData().isEmpty());
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerIntegrateTest.java