List<String> storyPaths = new ArrayList<String>();
Map<String, Story> stories = new HashMap<String, Story>();
for (Class<? extends Embeddable> embeddable : embeddables) {
String storyPath = resolver.resolve(embeddable);
storyPaths.add(storyPath);
Story story = mockStory(Meta.EMPTY);
stories.put(storyPath, story);
when(runner.storyOfPath(configuration, storyPath)).thenReturn(story);
}
for (String storyPath : storyPaths) {
doNothing().when(runner).run(configuration, candidateSteps, stories.get(storyPath), MetaFilter.EMPTY);