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

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