DependencyGraph { List<OutPortNode> outPortNodes() { return outPortNodeList; } DependencyGraph(RuntimeParentModule parentModule, BitSet requestedOutPorts);   }
@Test public void outPortNodes() { List<OutPortNode> outPortNodes = diamondGraph.outPortNodes(); Assert.assertEquals(COMPOSITE_MODULE.getOutPorts().size(), 2); Assert.assertEquals( outPortNodes.stream().map(OutPortNode::getElement).collect(Collectors.toList()), COMPOSITE_MODULE.getOutPorts() ); Assert.assertTrue( COMPOSITE_MODULE.getOutPorts().stream() .allMatch(outPort -> outPortNodes.get(outPort.getOutIndex()) == diamondGraph.targetNode(outPort)) ); }