File webAppDirectory = new File( getTestDirectory(), testId );
File webAppSource = createWebAppSource( testId );
File classesDir = createClassesDir( testId, true );
// Fake here since the mar artifact handler does not exist: no biggie
ArtifactHandler artifactHandler = (ArtifactHandler) lookup( ArtifactHandler.ROLE, "jar" );
ArtifactStub marArtifact = new MarArtifactStub( getBasedir(), artifactHandler );
File marFile = marArtifact.getFile();
assertTrue( "jar not found: " + marFile.toString(), marFile.exists() );
// configure mojo
project.addArtifact( marArtifact );