@Test
    public void testHTMLOutput() throws Exception {
        String content = getParamOutContent("-h", resourcePrefix + "alice.cli.test");
        assertTrue(content.contains("html xmlns=\"http://www.w3.org/1999/xhtml"));
        assertTrue(content.contains("<title></title>"), "Expanded <title></title> element should be present");

        content = getParamOutContent("-h", "--digest=sha384", resourcePrefix + "alice.cli.test");
        assertTrue(content.contains("<meta name=\"X-TIKA:digest:SHA384\" content=\"c69ea023f5da95a026"));
    }
Tests a -h option of the cli

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