public static InetSocketAddress getBindAddress(Configuration conf) {
    return conf.getSocketAddr(
        YarnConfiguration.PROXY_BIND_HOST,
        YarnConfiguration.PROXY_ADDRESS,
        YarnConfiguration.DEFAULT_PROXY_ADDRESS,
        YarnConfiguration.DEFAULT_PROXY_PORT);
  }
@Test
  void testStart() {
    webAppProxy.init(conf);
    assertEquals(STATE.INITED, webAppProxy.getServiceState());
    webAppProxy.start();
    for (Service service : webAppProxy.getServices()) {
      if (service instanceof WebAppProxy) {
        assertEquals(proxyAddress, ((WebAppProxy) service).getBindAddress());
      }
    }
    assertEquals(STATE.STARTED, webAppProxy.getServiceState());
  }