### Question:
HASUtils { public static InetSocketAddress getAuthzServiceRpcAddresses( Configuration conf) throws IOException { String addr = conf.get(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION_SERVER_RPC_ADDRESS_KEY , CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION_SERVER_RPC_ADDRESS_DEFAULT); return NetUtils.createSocketAddr(addr, 0, CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION_SERVER_RPC_ADDRESS_KEY); }  static InetSocketAddress getISServiceRpcAddresses(
      Configuration conf); static InetSocketAddress getAuthzServiceRpcAddresses(
      Configuration conf); static boolean parseHelpArgument(String[] args, 
      String helpDescription, PrintStream out, boolean printGenericCommandUsage); static String getUserNameFromKerberos(String username); static Options helpOptions; static Option helpOpt; }### Answer:
@Test public void testGetAuthzServiceRpcAddresses() throws Exception { Configuration conf = new HASConfiguration(); conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION_SERVER_RPC_ADDRESS_KEY, host + ":" + port); InetSocketAddress addr = HASUtils.getAuthzServiceRpcAddresses(conf); assertEquals(addr.getHostName(), host); assertEquals(addr.getPort(), port); }