lists.field1 = Arrays.asList(new String[]{"str1", "str2", "str3"});
lists.field2 = Arrays.asList(new Boolean[]{Boolean.TRUE, Boolean.FALSE, Boolean.TRUE});
StringWriter writer = new StringWriter();
XercesXsMarshaller marshaller = new XercesXsMarshaller();
MappingObjectModelProvider provider = new MappingObjectModelProvider();
provider.mapFieldToElement(ListWrapper.class, "field2", "http://jboss.org/test/xml/list", "e", null);
marshaller.marshal(new StringReader(LIST_TYPE_XSD), provider, lists, writer);
String xml = writer.getBuffer().toString();
assertXmlEqual(LIST_TYPE_XML, xml);
}