public void testServerOptionsCanLoadClientOptions() { String profile = "foo"; String execPath = "c:\\simon stewart\\likes\\cheese"; BrowserConfigurationOptions bco = new BrowserConfigurationOptions() .setSingleWindow() .setProfile(profile) .setBrowserExecutablePath(execPath); org.openqa.selenium.server.BrowserConfigurationOptions serverOptions = new org.openqa.selenium.server.BrowserConfigurationOptions(bco.toString()); assertEquals(profile, serverOptions.getProfile()); assertEquals(execPath, serverOptions.getExecutablePath()); assertTrue(serverOptions.isSingleWindow()); }