/** <p>Tests marshalling of a simple element.</p>
*/
public void testMarshalSimpleElements() throws Exception {
AllSimpleTypesSerializer marshaller = new AllSimpleTypesSerializer();
marshaller.init(getFactory());
XMLWriter xw = new XMLWriterImpl();
StringWriter sw = new StringWriter();
xw.setWriter(sw);
JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
AllTypesElementImpl element = new AllTypesElementImpl();
marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"), getAllSimpleTypesElement());
assertEquals(getAllSimpleTypesElementString(), sw.toString());
}