@Test
    public void testListDetectors() throws Exception {
        String content = getParamOutContent("--list-detector");
        assertTrue(content.contains("org.apache.tika.detect.DefaultDetector"));

        content = getParamOutContent("--list-detectors");
        assertTrue(content.contains("org.apache.tika.detect.DefaultDetector"));
    }
Tests --list-detector option of the cli
Tests --list-detectors option of the cli

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