public interface OutcomeWithCleanUp extends Outcome, CleansUpWorld {}
public interface GivenWorld extends Given, CleansUpWorld, World {}
public void shouldPerformGiven() throws Exception {
// given
final Mock given = mock(Given.class);
Scenario scenario = new MultiStepScenario() {
public void specifySteps() {
given((Given) given);
}
};
scenario.specify();
World world = new HashMapWorld();
// expect
given.expects("setUp").with(world);
// when
scenario.run(world);
// then