QName root = new QName("http://www.example.com/IPO", "purchaseOrder");
DataType targetDataType = new DataTypeImpl<XMLType>(PurchaseOrderType.class, new XMLType(root, null));
// targetDataType.setMetadata(JAXBContextHelper.JAXB_CONTEXT_PATH, contextPath);
TransformationContext tContext = createMock(TransformationContext.class);
expect(tContext.getTargetDataType()).andReturn(targetDataType).anyTimes();
replay(tContext);
Object object1 = t0.transform(new StringReader(IPO_XML), tContext);
DataType sourceDataType = new DataTypeImpl<XMLType>(PurchaseOrderType.class, new XMLType(root, null));
// sourceDataType.setMetadata(JAXBContextHelper.JAXB_CONTEXT_PATH, contextPath);
TransformationContext tContext1 = createMock(TransformationContext.class);
expect(tContext1.getSourceDataType()).andReturn(sourceDataType).anyTimes();
expect(tContext1.getTargetDataType()).andReturn(null).anyTimes();
replay(tContext1);
JAXB2Node t1 = new JAXB2Node();
Node node = t1.transform(object1, tContext1);