private String remoteHost = "http://localhost:5555";
@BeforeClass
public void setup() throws Exception {
GridHubConfiguration c = new GridHubConfiguration();
c.getAllParams().put(org.openqa.grid.common.RegistrationRequest.TIME_OUT, 12345);
c.setPort(PortProber.findFreePort());
c.setHost("localhost");
List<String>
servlets =
Arrays.asList(new String[]{IOSProxyStateUpdaterServlet.class.getCanonicalName()});
c.setServlets(servlets);
hub = new org.openqa.grid.web.Hub(c);
Registry registry = hub.getRegistry();
proxyApi = new URL("http://" + hub.getHost() + ":" + hub.getPort() + "/grid/admin/IOSProxyStateUpdaterServlet/");