JavaTransformModel javaTransform = new V1JavaTransformModel(TransformNamespace.V_1_0.uri());
javaTransform.setFrom(new QName("msgA"));
javaTransform.setTo(new QName("msgB"));
javaTransform.setClazz("org.examples.transform.AtoBTransform");
transforms.addTransform(javaTransform);
SmooksTransformModel smooksTransform = new V1SmooksTransformModel(TransformNamespace.V_1_0.uri());
smooksTransform.setFrom(new QName("msgC"));
smooksTransform.setTo(new QName("msgD"));
smooksTransform.setTransformType("XML2JAVA");
smooksTransform.setConfig("/trasnforms/xxx.xml");
smooksTransform.setReportPath("/tmp/smooksreport.html");
transforms.addTransform(smooksTransform);
switchyard.setTransforms(transforms);
String new_xml = switchyard.toString();
String old_xml = new ModelPuller<SwitchYardModel>().pull(XML, getClass()).toString();
XMLUnit.setIgnoreWhitespace(true);