public void testParseBrowserWithArg() throws Exception {
Flags flags = new Args4jFlagsParser().parseArgument(new String[]{"--browser",
"C:\\Program Files\\Mozilla Firefox\\firefox.exe;--someFlag;--anotherFlag"});
Set<BrowserRunner> expected = Sets.newHashSet();
expected.add(new CommandLineBrowserRunner(
"C:\\Program Files\\Mozilla Firefox\\firefox.exe",
"--someFlag --anotherFlag",
new SimpleProcessFactory()));
assertEquals(expected, flags.getBrowser());
}