@Test
public void end2end() throws Exception {
IOSServerConfiguration config = new IOSServerConfiguration();
config.setPort(4444);
config.setHost("localhost");
HttpClient client = HttpClientFactory.getClient();
URL u = new URL("http://" + config.getHost() + ":" + config.getPort() + "/wd/hub/manage/stopgracefully");
BasicHttpEntityEnclosingRequest r = new BasicHttpEntityEnclosingRequest("GET", u.toExternalForm());
HttpHost h = new HttpHost(u.getHost(), u.getPort());