{
ProcessingElementNode a = new ProcessingElementNode("A");
ProcessingElementNode b = new ProcessingElementNode("B");
ProcessingElementNode c = new ProcessingElementNode("C");
a.connectInput("in", 0, b.getOutput("out", 0));
CompositeProcessingElement composite =
new CompositeProcessingElement("C", Arrays.<RequestNode>asList(a, b));
composite.setInput("in", 0, b.getInput("in", 0));
c.connectOutput("out", 0, composite.getInput("in", 0));
Graph graph = GraphUtilities.getConnectedComponent(composite);
List<RequestNode> nodes = graph.getNodes();
System.out.println(graph);
Assert.assertEquals(2, nodes.size());
Assert.assertTrue(nodes.contains(composite));