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 testBindAddress() {
    conf = new YarnConfiguration();

    InetSocketAddress defaultBindAddress = WebAppProxyServer.getBindAddress(conf);
    assertEquals(YarnConfiguration.DEFAULT_PROXY_PORT,
        defaultBindAddress.getPort(),
        "Web Proxy default bind address port is incorrect");
  }