Mock mock = new Mock( ReleaseManager.class );
Constraint[] constraints = new Constraint[] {
new IsEqual( releaseDescriptor ),
new IsInstanceOf( ReleaseEnvironment.class ),
new IsNull()
};
ReleaseFailureException cause = new ReleaseFailureException( "..." );
mock.expects( new InvokeOnceMatcher() ).method( "perform" ).with( constraints ).will(