@Test
public void sanityTest() throws IOException {
OutputStream out = new ByteArrayOutputStream();
StreamSerializer serializer = new StreamSerializer(out);
serializer.writeXMLDeclaration();
Element rootElement = new Element("root");
rootElement.addAttribute(new Attribute("rootAttr", "rootAttrVal"));
serializer.writeStartTag(rootElement);
Element sub1 = new Element("sub");