ScenarioFile { public final Scenario getScenario() { return scenario; } ScenarioFile(String file); final Scenario getScenario();  }
@Test public void testReadingFile() throws Exception { String path = Paths.get(Thread.currentThread().getContextClassLoader().getResource("test.scenario.txt") .toURI()).toFile().getAbsolutePath(); ScenarioFile file = new ScenarioFile(path); file.getScenario(); }