{
final LinkedList exclusions = new LinkedList();
exclusions.add( "org/sample/ejb/**" );
final MavenProjectResourcesStub project = createTestProject( "client-excludes-emptypackage" );
final EjbMojo mojo = lookupMojoWithSettings( project, new LinkedList(), exclusions, null );
// put this on the target output dir
project.addFile( "META-INF/ejb-jar.xml", MavenProjectResourcesStub.OUTPUT_FILE );
project.addFile( "org/sample/ejb/AppOne.class", MavenProjectResourcesStub.OUTPUT_FILE );
project.addFile( "org/sample/ejb2/AppTwo.class", MavenProjectResourcesStub.OUTPUT_FILE );
// put this on the root dir
project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE );
// start creating the environment
project.setupBuildEnvironment();
setVariableValueToObject( mojo, "generateClient", Boolean.TRUE );
setVariableValueToObject( mojo, "ejbVersion", "2.1" );
mojo.execute();