protected void setUp()
throws Exception
{
mojo = new AnalyzeDepMgt();
MavenProject project = new DependencyProjectStub();
stubFactory = new DependencyArtifactStubFactory( new File( "" ), false );
Set<Artifact> allArtifacts = stubFactory.getMixedArtifacts();
Set<Artifact> directArtifacts = stubFactory.getClassifiedArtifacts();
exclusionArtifact = stubFactory.getReleaseArtifact();
directArtifacts.add( exclusionArtifact );
ex = new Exclusion();
ex.setArtifactId( exclusionArtifact.getArtifactId() );
ex.setGroupId( exclusionArtifact.getGroupId() );
exclusion = new Dependency();
exclusion.setArtifactId( exclusionArtifact.getArtifactId() );
exclusion.setGroupId( exclusionArtifact.getGroupId() );
exclusion.setType( exclusionArtifact.getType() );
exclusion.setClassifier( "" );
exclusion.setVersion( "3.0" );
exclusion.addExclusion( ex );
List<Dependency> list = new ArrayList<Dependency>();
list.add( exclusion );
depMgt = new DependencyManagement();
depMgt.setDependencies( list );
project.setArtifacts( allArtifacts );
project.setDependencyArtifacts( directArtifacts );
mojo.setProject( project );
}