dom.setTextContent("test");
MyType root = new MyType();
root.anything = dom;
MarshallerImpl marshaller = new MarshallerImpl();
StringWriter writer = new StringWriter();
marshaller.marshal(schema, null, root, writer);
assertXmlFileContent(rootName + "_complexContent.xml", writer.getBuffer().toString());
}