public byte[] getBytes() throws IOException {
        try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
            StreamUtil.streamToStream(getStream(), baos);
            baos.flush();
            return baos.toByteArray();
        }
    }
A TestRule to compile folders into zips of the same name.
<p>
Also provides helpful methods for getting streams for the zipz.
<p>
Deletes the zips afterwards.
<p>
E.g. the following will create a zip file called ZIP_FOLDER.zip in files,
containing everything in files/ZIP_FOLDER:
<p>
<pre>
&#64;ClassRule
public static ZipResource bomBlank = new ZipResource("files/ZIP_FOLDER");
</pre>
stroom-test-common/src/main/java/stroom/test/common/util/ZipResource.java