@Test
    public void testXMLOutput() throws Exception {
        String content = getParamOutContent("-x", resourcePrefix + "alice.cli.test");
        assertTrue(content.contains("?xml version=\"1.0\" encoding=\"UTF-8\"?"));

        content = getParamOutContent("-x", "--digest=sha256", resourcePrefix + "alice.cli.test");
        assertTrue(content.contains("<meta name=\"X-TIKA:digest:SHA256\" content=\"e90779adbac09c4ee"));

    }
Tests -x option of the cli

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