RMAuditLogger { static void start(Keys key, String value, StringBuilder b) { b.append(key.name()).append(AuditConstants.KEY_VAL_SEPARATOR).append(value); }  static void logSuccess(String user, String operation, String target, 
      ApplicationId appId, ContainerId containerId); static void logSuccess(String user, String operation, String target, 
      ApplicationId appId, ApplicationAttemptId attemptId); static void logSuccess(String user, String operation, String target,
      ApplicationId appId, CallerContext callerContext); static void logSuccess(String user, String operation, String target,
      ApplicationId appId); static void logSuccess(String user, String operation, String target); static void logFailure(String user, String operation, String perm,
      String target, String description, ApplicationId appId, 
      ContainerId containerId); static void logFailure(String user, String operation, String perm,
      String target, String description, ApplicationId appId, 
      ApplicationAttemptId attemptId); static void logFailure(String user, String operation, String perm,
      String target, String description, ApplicationId appId,
      CallerContext callerContext); static void logFailure(String user, String operation, String perm,
      String target, String description, ApplicationId appId); static void logFailure(String user, String operation, String perm,
      String target, String description);  }
@Test public void testRMAuditLoggerWithIP() throws Exception { Configuration conf = new Configuration(); Server server = new RPC.Builder(conf).setProtocol(TestProtocol.class) .setInstance(new MyTestRPCServer()).setBindAddress("0.0.0.0") .setPort(0).setNumHandlers(5).setVerbose(true).build(); server.start(); InetSocketAddress addr = NetUtils.getConnectAddress(server); TestProtocol proxy = (TestProtocol)RPC.getProxy(TestProtocol.class, TestProtocol.versionID, addr, conf); proxy.ping(); server.stop(); }