{
ReleaseDescriptor descriptor = new ReleaseDescriptor();
descriptor.setWorkingDirectory( workingDirectory.getAbsolutePath() );
Mock mock = new Mock( ReleaseManager.class );
mock.expects( new InvokeOnceMatcher() ).method( "clean" ).with( new IsEqual( descriptor ), new IsNull(),
new IsEqual( mojo.getReactorProjects() ) );
mojo.setReleaseManager( (ReleaseManager) mock.proxy() );
mojo.execute();