@Test
    void testOKCompressionZIP() throws IOException, ServletException {
        request.addHeader("feed", "TEST-FEED");
        request.addHeader("periodStartTime", DateUtil.createNormalDateTimeString());
        request.addHeader("periodEndTime", DateUtil.createNormalDateTimeString());
        request.addHeader("compression", "ZIP");

        final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        try (final InputStream inputStream = new ByteArrayInputStream("SOME TEST DATA".getBytes())) {
            try (final ZipArchiveOutputStream zipOutputStream = ZipUtil.createOutputStream(outputStream)) {
                zipOutputStream.putArchiveEntry(new ZipArchiveEntry("TEST.txt"));
                StreamUtil.streamToStream(inputStream, zipOutputStream);
                zipOutputStream.closeArchiveEntry();
            }
        }

        request.setInputStream(outputStream.toByteArray());

        receiveDataServlet.doPost(request, response);

        checkOK();
    }
The combination of mock and prod classes means this test needs its own
context.
stroom-app/src/test/java/stroom/receive/TestReceiveDataServlet.java