}
@Test
public void testRead() throws Exception {
SwitchYardModel switchyard = _puller.pull(XML, getClass());
TransformsModel transforms = switchyard.getTransforms();
JavaTransformModel java_transform = (JavaTransformModel)transforms.getTransforms().get(0);
Assert.assertEquals("msgA", java_transform.getFrom().getLocalPart());
Assert.assertEquals("msgB", java_transform.getTo().getLocalPart());
Assert.assertEquals("org.examples.transform.AtoBTransform", java_transform.getClazz());
SmooksTransformModel smooks_transform = (SmooksTransformModel)transforms.getTransforms().get(1);
Assert.assertEquals("msgC", smooks_transform.getFrom().getLocalPart());
Assert.assertEquals("msgD", smooks_transform.getTo().getLocalPart());
Assert.assertEquals("/trasnforms/xxx.xml", smooks_transform.getConfig());
Assert.assertEquals("/tmp/smooksreport.html", smooks_transform.getReportPath());