public void testDuplicateBrowserFileNamesAndRemoteMachineURLs() throws Exception {
ServerConfiguration configuration = new ServerConfiguration(new DuplicatesConfigurationSource());
List<Browser> browsers = configuration.getBrowsers();
assertEquals(3, browsers.size());
assertEquals(new Browser("xbrowser.exe", 2), browsers.get(2));
assertEquals(new Browser("iexplore.exe", 0), browsers.get(0));
assertEquals(new Browser("opera.exe", 1), browsers.get(1));
List<URL> remoteMachineURLs = configuration.getRemoteMachineURLs();
assertEquals(4, remoteMachineURLs.size());
assertEquals("http://machine1:8080/jsunit", remoteMachineURLs.get(0).toString());
assertEquals("http://machine1:8081/jsunit", remoteMachineURLs.get(1).toString());