@Test
public void testSerialParsing() throws Exception {

    try (ForkParser parser = new ForkParser(ForkParserTest.class.getClassLoader(), new ForkTestParser())) {
        ParseContext context = new ParseContext();
        for (int i = 0; i < 10; i++) {
            ContentHandler output = new BodyContentHandler();
            InputStream stream = new ByteArrayInputStream(new byte[0]);
            parser.parse(stream, output, new Metadata(), context);
            assertEquals("Hello, World!", output.toString().trim());
        }
    }
}