assertXmlEqual(PO_XML, writer.getBuffer().toString());
}
public void testMarshallingSunday() throws Exception
{
MarshallerImpl marshaller = new MarshallerImpl();
marshaller.setSchemaResolver(SCHEMA_RESOLVER);
marshaller.mapClassToXsiType(UKAddress.class, PO_NS, "UKAddress");
marshaller.mapClassToXsiType(USAddress.class, PO_NS, "USAddress");
StringWriter writer = new StringWriter();
marshaller.marshal(SCHEMA, null, PurchaseOrder.INSTANCE, writer);
assertXmlEqual(PO_XML, writer.getBuffer().toString());
}