@Test public void shouldRun_singleTestSuccessfully() throws Exception {
String testUrl = "file://" + getClass().getResource("/html/page-nice.html").getFile();
System.setProperty("url", testUrl);
System.setProperty("spec.path", getClass().getResource("/html/page.spec").getFile());
GalenMain galen = new GalenMain();
File reportsDir = Files.createTempDir();
String htmlReportPath = reportsDir.getAbsolutePath();
String testngReportPath = reportsDir.getAbsolutePath() + "/testng-report.html";
galen.execute(new GalenArguments()
.withAction("test")
.withPaths(asList(getClass().getResource("/suites/to-run/suite-single.test").getFile()))
.withHtmlReport(htmlReportPath)
.withTestngReport(testngReportPath)
);