@Test
public void test() throws IOException {
WebDriverManager wdm = WebDriverManager.getInstance();
wdm.setWebDriverFactory(WebDriverManager.HTMLUNIT);
wdm.setDriverOptions(new DriverOptions());
Runner runner = new Runner();
runner.setDriver(wdm.get());
CommandFactory cf = runner.getCommandFactory();
File selenesefile = File.createTempFile("selenese", ".html");
TestCase testCase = Binder.newTestCase(selenesefile.getPath(), "test", "http://example.co.jp");
testCase.addCommand(cf, "store", wsr.getBaseURL(), "url");
testCase.addCommand(cf, "open", "${url}");
testCase.addCommand(cf, "pause", "1000");
runner.execute(testCase);
assertThat(runner.getWrappedDriver().getCurrentUrl(), is(wsr.getBaseURL()));
}