@Test
    void testOKCompressionGZIP2() throws IOException, ServletException {
        request.addHeader("feed", "TEST-FEED");
        request.addHeader("periodStartTime", DateUtil.createNormalDateTimeString());
        request.addHeader("periodEndTime", DateUtil.createNormalDateTimeString());
        request.addHeader("compression", "GZIP");
        final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        try (final InputStream inputStream = new ByteArrayInputStream("LINE1\n".getBytes())) {
            try (final GzipCompressorOutputStream gzipOutputStream = new GzipCompressorOutputStream(outputStream)) {
                StreamUtil.streamToStream(inputStream, gzipOutputStream);
            }
        }
        try (final InputStream inputStream = new ByteArrayInputStream("LINE2\n".getBytes())) {
            try (final GzipCompressorOutputStream gzipOutputStream = new GzipCompressorOutputStream(outputStream)) {
                StreamUtil.streamToStream(inputStream, gzipOutputStream);
            }
        }
        request.setInputStream(outputStream.toByteArray());

        receiveDataServlet.doPost(request, response);

        checkOK();

        try (final Source source = store.openSource(store.getLastMeta().getId())) {
            assertThat(SourceUtil.readString(source))
                    .isEqualTo("LINE1\nLINE2\n");
        }
    }
The combination of mock and prod classes means this test needs its own
context.
stroom-app/src/test/java/stroom/receive/TestReceiveDataServlet.java