MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
File webAppDirectory = new File( getTestDirectory(), testId );
File webAppSource = createWebAppSource( testId );
File classesDir = createClassesDir( testId, true );
ArtifactHandler artifactHandler = (ArtifactHandler) lookup( ArtifactHandler.ROLE, "jar" );
ArtifactStub jarArtifact = new JarArtifactStub( getBasedir(), artifactHandler );
File jarFile = jarArtifact.getFile();
assertTrue( "jar not found: " + jarFile.toString(), jarFile.exists() );
// configure mojo
project.addArtifact( jarArtifact );