// programmatically.
stubFactory.setSrcFile( new File( getBasedir() + File.separatorChar
+ "target/test-classes/unit/unpack-dependencies-test/test.txt" ) );
mojo.setFactory( DependencyTestUtils.getArtifactFactory() );
mojo.setResolver( new StubArtifactResolver( stubFactory, false, false ) );
mojo.setLocal( new StubArtifactRepository( this.testDir.getAbsolutePath() ) );
mojo.setArtifactCollector( new StubArtifactCollector() );
mojo.setUseJvmChmod( true );
}