literal.connectOutput("output", 0, node2.getInput("input", 0));
Graph graph = new Graph();
graph.add(literal);
graph.add(node2);
ExchangeFactory factory = new TestExchangeFactory();
ProcessingElementMapper mapper = new SimpleProcessingElementMapper();
PartitionedGraphToWorkflows toWF =
new PartitionedGraphToWorkflows(factory, factory, mapper, null);
toWF.createWorkflows(graph);
assertTrue(toWF.getExchanges().isEmpty());
assertEquals(1, toWF.getWorkflows().size());