@Ignore("Integration test")
@Test
public void testAddInputSplitterToWSDLActivity() throws Exception {

	AddXMLSplitterEdit edit = new AddXMLSplitterEdit(dataflow,activity,"parameters",true, new EditsImpl());
	edit.doEdit();
	assertEquals("The workflow should now contain 2 services",2,dataflow.getProcessors().size());
	Processor processor=null;
	for (Processor p : dataflow.getProcessors()) {
		if (p.getLocalName().equals("parametersXML")) {
			processor = p;
			break;
		}
	}
	assertNotNull("There should be a processor named parametersXML",processor);
	assertEquals("There should be 1 activity",1,processor.getActivityList().size());
	assertEquals("THe processor should have 3 input ports",3,processor.getInputPorts().size());
	assertEquals("THe processor should have 1 output port",1,processor.getOutputPorts().size());
	Activity<?>a = processor.getActivityList().get(0);
	assertEquals("The activity should have 3 input ports",3,a.getInputPorts().size());
	assertEquals("The activity 1 output port",1,a.getOutputPorts().size());
	assertEquals("There should be 1 datalink",1,dataflow.getLinks().size());
}