@Test
public void testBoilerplateWhitespace() throws Exception {

    String path = "/test-documents/boilerplate-whitespace.html";
    Metadata metadata = new Metadata();
    BodyContentHandler handler = new BodyContentHandler();
    BoilerpipeContentHandler bpHandler = new BoilerpipeContentHandler(handler);
    bpHandler.setIncludeMarkup(true);
    new HtmlParser().parse(
            HtmlParserTest.class.getResourceAsStream(path),
            bpHandler, metadata, new ParseContext());
    String content = handler.toString();
    // Should not contain item_aitem_b
    assertFalse(content.contains("item_aitem_b"));
    // Should contain the two list items with a newline in between.
    assertContains("item_a\nitem_b", content);
    // Should contain 有什么需要我帮你的 (can i help you) without whitespace
    assertContains("有什么需要我帮你的", content);
}