private Header[] getTrailingHeaders(final CloseableHttpResponse response) throws IOException, NoSuchFieldException, IllegalAccessException {
        final InputStream content = response.getEntity().getContent();
        final Field field = content.getClass().getDeclaredField("wrappedStream");
        field.setAccessible(true);
        final EofSensorInputStream stream = (EofSensorInputStream) field.get(content);
        final Field eofStreamField = stream.getClass().getDeclaredField("eofWatcher");
        eofStreamField.setAccessible(true);
        final HttpEntityWrapper entityProxy = (HttpEntityWrapper) eofStreamField.get(stream);
        final EofSensorInputStream innerEofStream = (EofSensorInputStream) entityProxy.getContent();
        final Field eofWrappedStreamField = innerEofStream.getClass().getDeclaredField("wrappedStream");
        eofWrappedStreamField.setAccessible(true);
        return ((ChunkedInputStream) eofWrappedStreamField.get(innerEofStream)).getFooters();
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerHttpIntegrateTest.java