@Test
    public void testExtractInlineImages() throws Exception {
        String[] params = {"--extract-dir=" + extractDir.toAbsolutePath(), "-z", resourcePrefix + "/testPDF_childAttachments.pdf"};

        TikaCLI.main(params);

        String[] tempFileNames = extractDir
                .toFile()
                .list();
        assertNotNull(tempFileNames);
        String allFiles = String.join(" : ", tempFileNames);

        Path jpeg = extractDir.resolve("image0.jpg");
        //tiff isn't extracted without optional image dependency
//            File tiff = new File(tempFile, "image1.tif");
        Path jobOptions = extractDir.resolve("Press Quality(1).joboptions");
        Path doc = extractDir.resolve("Unit10.doc");

        assertExtracted(jpeg, allFiles);
        assertExtracted(jobOptions, allFiles);
        assertExtracted(doc, allFiles);
    }
Tests --list-supported-types option of the cli

@throws Exception
tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java