@Test
public void testGetHostNameOfIP() {

  assertNull(NetUtils.getHostNameOfIP(null));
  assertNull(NetUtils.getHostNameOfIP(""));
  assertNull(NetUtils.getHostNameOfIP("crazytown"));
  assertNull(NetUtils.getHostNameOfIP("127.0.0.1:"));   // no port
  assertNull(NetUtils.getHostNameOfIP("127.0.0.1:-1")); // bogus port
  assertNull(NetUtils.getHostNameOfIP("127.0.0.1:A"));  // bogus port
  assertNotNull(NetUtils.getHostNameOfIP("127.0.0.1"));
  assertNotNull(NetUtils.getHostNameOfIP("127.0.0.1:1"));
}