public void testShouldAddManifestWhenArchiverIsJarArchiver()
throws ArchiverException, IOException
{
MavenProject project = new MavenProject( new Model() );
MavenArchiveConfiguration config = new MavenArchiveConfiguration();
File tempDir = fileManager.createTempDir();
File manifestFile = fileManager.createFile( tempDir, "MANIFEST.MF", "Main-Class: Stuff\n" );
config.setManifestFile( manifestFile );
JarArchiver archiver = new JarArchiver();
archiver.setArchiveFinalizers( Collections.<ArchiveFinalizer>singletonList( new ManifestCreationFinalizer(
null,