// Add all deps.
List deps = new ArrayList( dependencyTree.getArtifacts() );
// Remove the direct deps.
List directDeps = new ArrayList();
directDeps.addAll( dependencyTree.getRootNode().getChildren() );
CollectionUtils.transform( directDeps, new DependencyNodeToArtifactTransformer() );
deps.removeAll( directDeps );
Collections.sort( deps );
writeExpectedNodesAdd( deps, scope );