// Then fail as expected
}
private void ensureOutputFileIsSame(URL codeLocation, String storyPath) {
FileConfiguration configuration = new FileConfiguration("ext");
FilePrintStreamFactory factory = new FilePrintStreamFactory(new StoryLocation(codeLocation, storyPath), configuration);
factory.createPrintStream();
File outputFile = factory.getOutputFile();
String expected = new File(codeLocation.getFile()).getParent().replace('\\', '/') + "/" + configuration.getRelativeDirectory() + "/"
+ "org.jbehave.examples.trader.stories.my_given." + configuration.getExtension();
assertThat(outputFile.toString().replace('\\', '/'), equalTo(expected));