final MockAndControlForLogger macLogger = new MockAndControlForLogger( mm );
final MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm );
final Assembly assembly = new Assembly();
assembly.setId( "test" );
assembly.setIncludeBaseDirectory( true );
final FileItem readmeFileItem = new FileItem();
readmeFileItem.setSource( "README.txt" );
readmeFileItem.setOutputDirectory( "" );
readmeFileItem.setDestName( "README_renamed.txt" );
readmeFileItem.setFiltered( false );
readmeFileItem.setLineEnding( "keep" );
readmeFileItem.setFileMode( "777" );
final FileItem licenseFileItem = new FileItem();
licenseFileItem.setSource( "LICENSE.txt" );
licenseFileItem.setOutputDirectory( "/" );
licenseFileItem.setDestName( "LICENSE_renamed.txt" );
licenseFileItem.setFiltered( false );
licenseFileItem.setLineEnding( "keep" );
licenseFileItem.setFileMode( "777" );
final FileItem configFileItem = new FileItem();
configFileItem.setSource( "config/config.txt" );
configFileItem.setDestName( "config_renamed.txt" );
configFileItem.setOutputDirectory( "config" );
configFileItem.setFiltered( false );
configFileItem.setLineEnding( "keep" );
configFileItem.setFileMode( "777" );
macArchiver.expectAddFile( readmeFile,
"README_renamed.txt",
TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) );
macArchiver.expectAddFile( licenseFile,
"LICENSE_renamed.txt",
TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) );
macArchiver.expectAddFile( configFile,
"config/config_renamed.txt",
TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) );
assembly.addFile( readmeFileItem );
assembly.addFile( licenseFileItem );
assembly.addFile( configFileItem );
macCS.expectGetEncoding();
mm.replayAll();