Object[] source = new Object[] {"cust001", IPO_XML, Integer.valueOf(1)};
Input2InputTransformer t = new Input2InputTransformer();
t.setDataBindingRegistry(dataBindingRegistry);
t.setMediator(m);
TransformationContext context = new TransformationContextImpl();
List<DataType<Class>> types = new ArrayList<DataType<Class>>();
types.add(new DataType<Class>(Object.class.getName(), String.class, String.class));
types.add(new DataType<Class>("java.lang.String", String.class, String.class));
types.add(new DataType<Class>(Object.class.getName(), int.class, int.class));
DataType<List<DataType<Class>>> inputType1 =
new DataType<List<DataType<Class>>>("idl:input", Object[].class, types);
context.setSourceDataType(inputType1);
context.setTargetDataType(op.getInputType());
Object[] results = t.transform(source, context);
assertEquals(1, results.length);
assertTrue(results[0] instanceof Element);
Element element = (Element)results[0];
assertEquals("http://example.com/order.xsd", element.getNamespaceURI());
assertEquals("checkOrderStatus", element.getLocalName());
TransformationContext context1 = new TransformationContextImpl();
DataType<DataType> sourceType =
new DataType<DataType>("idl:output", Object.class, op.getOutputType());
sourceType.setMetadata(OPERATION_KEY, op.getOutputType().getMetadata(OPERATION_KEY));
context1.setSourceDataType(sourceType);
DataType<DataType> targetType =
new DataType<DataType>("idl:output", Object.class,
new DataType<Class>("java.lang.Object", String.class, String.class));
context1.setTargetDataType(targetType);
Document factory = DOMHelper.newDocument();
Element responseElement =
factory.createElementNS("http://example.com/order.wsdl", "p:checkOrderStatusResponse");
Element status = factory.createElement("status");