*/
public void _testTreeTestEnvironment()
throws Exception
{
File testPom = new File( getBasedir(), "target/test-classes/unit/tree-test/plugin-config.xml" );
TreeMojo mojo = (TreeMojo) lookupMojo( "tree", testPom );
assertNotNull( mojo );
assertNotNull( mojo.getProject() );
MavenProject project = mojo.getProject();
project.setArtifact( this.stubFactory.createArtifact( "testGroupId", "project", "1.0" ) );
Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
Set<Artifact> directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts();
artifacts.addAll( directArtifacts );
project.setArtifacts( artifacts );
project.setDependencyArtifacts( directArtifacts );
mojo.execute();
DependencyNode rootNode = mojo.getDependencyGraph();
assertNodeEquals( "testGroupId:project:jar:1.0:compile", rootNode );
assertEquals( 2, rootNode.getChildren().size() );
assertChildNodeEquals( "testGroupId:snapshot:jar:2.0-SNAPSHOT:compile", rootNode, 0 );
assertChildNodeEquals( "testGroupId:release:jar:1.0:compile", rootNode, 1 );
}