public static class MyStory extends UsingMiniMock implements Story {
private Mock mock;
public MyStory() {
ScenarioResult resultA = new ScenarioResult("scenarioA", "MyStory", ScenarioResult.SUCCEEDED);
ScenarioResult resultB = new ScenarioResult("scenarioB", "MyStory", ScenarioResult.SUCCEEDED);
mock = mock(Story.class);
mock.expects("addListener").with(isA(PlainTextScenarioListener.class));
mock.expects("run").with(a(World.class)).will(returnValue(new ScenarioResult[] {resultA, resultB}));
}