ParsingExample { public String serializedRecursiveParserWrapperExample() throws IOException, SAXException, TikaException { List<Metadata> metadataList = recursiveParserWrapperExample(); StringWriter writer = new StringWriter(); JsonMetadataList.toJson(metadataList, writer); return writer.toString(); }  String parseToStringExample(); String parseExample(); String parseNoEmbeddedExample(); String parseEmbeddedExample(); List<Metadata> recursiveParserWrapperExample(); String serializedRecursiveParserWrapperExample(); List<Path> extractEmbeddedDocumentsExample(Path outputPath);  }
@Test public void testSerializedRecursiveParserWrapperExample() throws IOException, SAXException, TikaException { String json = parsingExample.serializedRecursiveParserWrapperExample(); assertTrue(json.indexOf("When in the Course") > -1); List<Metadata> metadataList = JsonMetadataList.fromJson(new StringReader(json)); assertEquals(12, metadataList.size()); }