public String serializedRecursiveParserWrapperExample() throws IOException, SAXException, TikaException {
        List<Metadata> metadataList = recursiveParserWrapperExample();
        StringWriter writer = new StringWriter();
        JsonMetadataList.toJson(metadataList, writer);
        return writer.toString();
    }
@Test
    public void testSerializedRecursiveParserWrapperExample() throws IOException, SAXException, TikaException {
        String json = parsingExample.serializedRecursiveParserWrapperExample();
        assertTrue(json.contains("When in the Course"));
        //now try deserializing the JSON
        List<Metadata> metadataList = JsonMetadataList.fromJson(new StringReader(json));
        assertEquals(12, metadataList.size());
    }