fs.setDirectoryMode( "777" );
assembly.addFileSet( fs );
final MockAndControlForLogger macLogger = new MockAndControlForLogger();
final MockAndControlForAddFileSetsTask macTask =
new MockAndControlForAddFileSetsTask( mm, fileManager );
macTask.expectGetArchiveBaseDirectory();
final File basedir = fileManager.createTempDir();
final MavenProject project = new MavenProject( new Model() );
macLogger.expectDebug( true, true );
final int dirMode = Integer.parseInt( "777", 8 );
final int fileMode = Integer.parseInt( "777", 8 );
final int[] modes = { -1, -1, dirMode, fileMode };
macTask.expectAdditionOfSingleFileSet( project, "final-name", false, modes, 1, true );
mm.replayAll();
createPhase( macLogger ).execute( assembly, macTask.archiver, macTask.configSource );