@Test
    public void testDecompressConcatenated() throws Exception {
        //test default
        assertEquals(2, getRecursiveMetadata("multiple.gz").size());

        //test config
        TikaConfig tikaConfig = null;
        try (InputStream is = getResourceAsStream("/configs/tika-config-multiple-gz.xml")) {
            tikaConfig = new TikaConfig(is);
        }
        assertContains("<p>ab</p>",
                getRecursiveMetadata("multiple.gz", new AutoDetectParser(tikaConfig)).get(1)
                        .get(TikaCoreProperties.TIKA_CONTENT));
    }
Test case for parsing gzip files.
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/parser/pkg/GzipParserTest.java