@Test
public void testHelloWorld() throws Exception {

    try (ForkParser parser = new ForkParser(ForkParserTest.class.getClassLoader(), new ForkTestParser())) {
        Metadata metadata = new Metadata();
        ContentHandler output = new BodyContentHandler();
        InputStream stream = new ByteArrayInputStream(new byte[0]);
        ParseContext context = new ParseContext();
        parser.parse(stream, output, metadata, context);
        assertEquals("Hello, World!", output.toString().trim());
        assertEquals("text/plain", metadata.get(Metadata.CONTENT_TYPE));
    }
}