public void testMarshalStringArrayXerces() throws Exception
{
XercesXsMarshaller marshaller = new XercesXsMarshaller();
marshaller.mapClassToGlobalElement(ArrayWrapper.class, "arr", "http://www.jboss.org/xml/test/arraywrapper", null, null);
MappingObjectModelProvider provider = new MappingObjectModelProvider();
provider.mapFieldToElement(ArrayWrapper.class, "stringArray", "http://www.jboss.org/xml/test/arraywrapper", "stringArray", null);
StringWriter writer = new StringWriter();
marshaller.marshal(new StringReader(XSD), provider, ArrayWrapper.STRING_ARR_INSTANCE, writer);
assertXmlEqual(XML, writer.getBuffer().toString());
}