@Test
    public void checkHeader() {
        xml.xmlHeader("utf-8");
        assertEquals("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n", getWritten());
    }
This test is currently incomplete. Also much tested in the prelude module though.

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