MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
File webAppDirectory = new File( getTestDirectory(), testId );
File webAppSource = createWebAppSource( testId );
File classesDir = createClassesDir( testId, true );
EJBArtifactStub ejbArtifact = new EJBArtifactStub( getBasedir() );
EJBArtifactStubWithClassifier ejbArtifactDup = new EJBArtifactStubWithClassifier( getBasedir() );
File ejbFile = ejbArtifact.getFile();
// ejbArtifact has a hard coded file, only one assert is needed
assertTrue( "ejb not found: " + ejbFile.getAbsolutePath(), ejbFile.exists() );
// configure mojo
ejbArtifact.setGroupId( "org.sample.ejb" );
ejbArtifactDup.setGroupId( "org.sample.ejb" );
ejbArtifactDup.setClassifier( "classifier" );
project.addArtifact( ejbArtifact );
project.addArtifact( ejbArtifactDup );
this.configureMojo( mojo, new LinkedList<String>(), classesDir, webAppSource, webAppDirectory, project );