public static String decompressGzip(byte[] compressedData) throws IOException {
        return decompressGzip(compressedData, Long.MAX_VALUE);
    }
@Test
    public void testDecompressGzipBomb() throws URISyntaxException, IOException {
        final URL url = Resources.getResource("org/graylog2/plugin/gzip64mb.gz");
        final byte[] testData = Files.readAllBytes(Paths.get(url.toURI()));
        assertThat(Tools.decompressGzip(testData, 1024)).hasSize(1024);
    }