mojo.outputDirectory = "target/test-classes";
List<String> includes = asList("**/stories/*.story");
mojo.includes = includes;
List<String> excludes = asList();
mojo.excludes = excludes;
List<String> storyPaths = new StoryFinder().findPaths(searchInDirectory, includes, excludes);
// When
doThrow(new RuntimeException()).when(embedder).mapStoriesAsPaths(storyPaths);
mojo.execute();