@Test
public void testParseEmpty() throws Exception {

    ContentHandler handler = new BodyContentHandler();
    new HtmlParser().parse(
            new ByteArrayInputStream(new byte[0]),
            handler, new Metadata(), new ParseContext());
    assertEquals("", handler.toString());
}