@Test
  public void testIpAddress() throws Exception {
    Database db = new DatabaseBuilder()
        .setName("testIpAddressIp")
        .create(msc, conf);
    msc.dropDatabase(db.getName());
  }
TestRemoteHiveMetaStoreIpAddress.

Test which checks that the remote Hive metastore stores the proper IP address using
IpAddressListener
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestRemoteHiveMetaStoreIpAddress.java