TestCase testCase = Binder.newTestCase("dummy", "dummy", runner, wsr.getBaseURL());
CommandFactory commandFactory = runner.getCommandFactory();
commandFactory.setProc(testCase.getProc());
testCase.addCommand(commandFactory.newCommand(0, "open", "/assertion.html"));
testCase.addCommand(commandFactory.newCommand(1, commandName, argument));
Result result = testCase.execute(null, runner);
assertThat(result, is(instanceOf(resultClass)));
}
/**
* test for string-match