@Test
    public void testDefaultPDFIncrementalUpdateSettings() throws Exception {
        String json = getParamOutContent("-J",
                resourcePrefix + "testPDF_incrementalUpdates.pdf");
        assertTrue(json.contains("pdf:incrementalUpdateCount\":\"2\""));
        assertTrue(json.contains("embeddedResourceType\":\"VERSION\""));
    }
Test for -json with prettyprint option

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