List<ArtifactRepository> remoteRepositories = new ArrayList<ArtifactRepository>();
remoteRepositories.add( repoFactory.createArtifactRepository( "central", remoteRepoDir.toURI().toURL()
.toExternalForm(), new DefaultRepositoryLayout(), null, null ) );
mojo.setRemoteRepos( remoteRepositories );
DefaultArtifactRepository localRepository = new DefaultArtifactRepository( "local",
localRepo.getAbsolutePath(), new DefaultRepositoryLayout() );
localRepository.setBasedir( localRepo.getAbsolutePath() );
mojo.setLocal( localRepository );
mojo.execute();
assertTrue( "Directory org.eclipse.core.jobs_3.3.1.R33x_v20070709 not exists", checkExists( getBasedir()