System.out.println("jenkins.nodeName=foo");
dc = DesiredCapabilities.htmlUnit();
dc.setCapability("jenkins.nodeName", "foo");
try {
WebDriver dr = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), dc);
dr.quit();
} catch (Exception e) {
fail(e.getMessage()); // should have passed
}
dc.setCapability("jenkins.label", "foolabel");