macTask.expectGetDestFile( new File( "junk" ) );
macTask.expectAddFile( artifactFile, "out/artifact",
TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) );
macTask.expectGetSession( null );
final ModuleBinaries binaries = new ModuleBinaries();
binaries.setUnpack( false );
binaries.setFileMode( "777" );
binaries.setOutputDirectory( "out" );
binaries.setOutputFileNameMapping( "artifact" );
final DependencySet ds = new DependencySet();
ds.setUseProjectArtifact( false );
ds.setOutputDirectory( binaries.getOutputDirectory() );
ds.setOutputFileNameMapping( "${artifact.artifactId}" );
ds.setFileMode( "777" );
binaries.addDependencySet( ds );
final MavenProject project = createProject( "group", "artifact", "version", null );
project.setArtifact( artifactMock.getArtifact() );
final ArtifactMock depArtifactMock = new ArtifactMock( mm, "group", "dep", "1", "jar", false );