@Test public void after() {

    Document doc = Jsoup.parse("<p>One <b>two</b> three</p>");
    Element newNode = new Element(Tag.valueOf("em"), "");
    newNode.appendText("four");
    doc.select("b").first().after(newNode);
    assertEquals("<p>One <b>two</b><em>four</em> three</p>", doc.body().html());
    doc.select("b").first().after("<i>five</i>");
    assertEquals("<p>One <b>two</b><i>five</i><em>four</em> three</p>", doc.body().html());
}