{
DependencyGraphNode rootNode = graph.getRootNode();
List<DependencyGraphEdge> rootEdges = graph.getEdgesFrom( rootNode );
List<DependencyGraphEdge> actualEdges = new ArrayList<DependencyGraphEdge>();
Predicate directDep = NotPredicate.getInstance( new NodeFromParentPredicate() );
Predicate scopedDirectDeps = AndPredicate.getInstance( new EdgeExactScopePredicate( scope ), directDep );
CollectionUtils.select( rootEdges, scopedDirectDeps, actualEdges );
// CollectionUtils.select( rootEdges, new EdgeExactScopePredicate( scope ), actualEdges );
if ( expectedNodes.size() != actualEdges.size() )