@Test
@TestDir
public void testResolveAuthority() throws Exception {

  String dir = TestDirHelper.getTestDir().getAbsolutePath();
  System.setProperty("TestServerWebApp3.home.dir", dir);
  System.setProperty("TestServerWebApp3.config.dir", dir);
  System.setProperty("TestServerWebApp3.log.dir", dir);
  System.setProperty("TestServerWebApp3.temp.dir", dir);
  System.setProperty("testserverwebapp3.http.hostname", "localhost");
  System.setProperty("testserverwebapp3.http.port", "14000");
  ServerWebApp server = new ServerWebApp("TestServerWebApp3") {
  };
  InetSocketAddress address = server.resolveAuthority();
  Assert.assertEquals("localhost", address.getHostName());
  Assert.assertEquals(14000, address.getPort());
}