@Before
  public void setUp() throws Exception {
    final WebServer webServer = webServerRule.getWebServer();
    client = new RestfulClient(webServer.getBase());

    resource = client.getVersionResource();
  }
 public WebServer getWebServer() {
   WebServer webServer = WEBSERVER.get();
   if (webServer == null) {
     webServer = new WebServer();
     WEBSERVER.set(webServer);
     webServer.run(port);
   }
   return webServer;
 }
 private URI resolveUri(final String path) {
   final WebServer webServer = getWebServer();
   final URI base = webServer.getBase();
   return path != null ? base.resolve(path) : base;
 }