private String getWritten() {
        xml.close();
        return xml.getWrapped().toString();
    }
This test is currently incomplete. Also much tested in the prelude module though.

@author bratseth
vespajlib/src/test/java/com/yahoo/text/XMLWriterTestCase.java