w.writeRaw(" ");
w.element("root");
w.end();
// You really shouldn't have any text after the close tag of the document, so it
// gets moved to the top, to the "preamble", before the first element.
w.comment("content after root element in preamble");
assertEquals(w.getDocument().toString(), readFile("preamble_content.txt"));
}
@Test(expectedExceptions = IllegalStateException.class)