@Test public void outerHtml() {

    Document doc = Jsoup.parse("<div><p>Hello</p></div><div><p>There</p></div>");
    Elements divs = doc.select("div");
    assertEquals("<div><p>Hello</p></div><div><p>There</p></div>", TextUtil.stripNewlines(divs.outerHtml()));
}