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