@Test
    public void testTextOutput() throws Exception {
        String content = getParamOutContent("-t", resourcePrefix + "alice.cli.test");
        assertTrue(content.contains("finished off the cake"));
    }
Tests -t option of the cli

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