JMMarshallerImpl m = (JMMarshallerImpl) getFactory().createMarshaller();
StringWriter sw = new StringWriter();
AllTypesElement element = getAllTypesElement();
m.setXmlDeclaration(false);
m.setEncoding("US-ASCII");
m.marshal(element, sw);
String expected = getAllTypesElementString(false, true);
assertEquals(expected, sw.toString());
}
/** <p>Tests marshalling of a complex element.</p>