new QName("purchaseOrder"), JavaTypes.toMessageType(POType.class), null);
JAXBMarshalTransformer marshalTransformer = new JAXBMarshalTransformer(
JavaTypes.toMessageType(POType.class), new QName("purchaseOrder"), null);
DefaultMessage message = new DefaultMessage();
message.setContent(new StreamSource(new StringReader(PO_XML)));
// Transform XML to Java POType and back to XML...
unmarshalTransformer.transform(message);
marshalTransformer.transform(message);
// Check the round trip...
String resultXML = message.getContent(String.class);
XMLUnit.setIgnoreWhitespace(true);
XMLUnit.compareXML(PO_XML, resultXML);
}