### Question:
WebAppProxyServer extends CompositeService { public static InetSocketAddress getBindAddress(Configuration conf) { return conf.getSocketAddr(YarnConfiguration.PROXY_ADDRESS, YarnConfiguration.DEFAULT_PROXY_ADDRESS, YarnConfiguration.DEFAULT_PROXY_PORT); } WebAppProxyServer(); static InetSocketAddress getBindAddress(Configuration conf); static void main(String[] args); static final int SHUTDOWN_HOOK_PRIORITY; }### Answer:
@Test public void testStart() { assertEquals(STATE.INITED, webAppProxy.getServiceState()); webAppProxy.start(); for (Service service : webAppProxy.getServices()) { if (service instanceof WebAppProxy) { assertEquals(((WebAppProxy) service).getBindAddress(), proxyAddress); } } assertEquals(STATE.STARTED, webAppProxy.getServiceState()); }