public void testMultipleInputsWithTypes() throws Exception
{
List<ProcessingElementInputDescriptor> inputDescriptors =
new ArrayList<ProcessingElementInputDescriptor>();
ProcessingElementInputDescriptor inputDesc = new ProcessingElementInputDescriptor("in1");
inputDesc.setSType(new PrimitiveSType("mytype"));
inputDescriptors.add(inputDesc);
inputDesc = new ProcessingElementInputDescriptor("in2");
TupleSType tuple = new TupleSType();
tuple.addElement("a", new PrimitiveSType("Integer"));
tuple.addElement("b", new PrimitiveSType("String"));
tuple.setRest(true);
inputDesc.setSType(tuple);
inputDescriptors.add(inputDesc);
List<ProcessingElementOutputDescriptor> outputDescriptors =
new ArrayList<ProcessingElementOutputDescriptor>();
ProcessingElementOutputDescriptor outputDesc = new ProcessingElementOutputDescriptor("in1");
outputDesc.setSType(new PrimitiveSType("mytype"));
outputDescriptors.add(outputDesc);
outputDesc = new ProcessingElementOutputDescriptor("out1");
ListSType list = new ListSType(new ListSType(new PrimitiveSType("Real")));
outputDesc.setSType(list);
outputDescriptors.add(outputDesc);
ProcessingElementDescriptor desc =
new SimpleProcessingElementDescriptor(inputDescriptors, outputDescriptors, null);