@Test
public void testIsLocalHost() throws UnknownHostException, SocketException {

  assertEquals(0, NetUtils.findHostIndex(new String[] { "127.0.0.1" }));
  assertEquals(0, NetUtils.findHostIndex(new String[] { "localhost" }));
  assertEquals(0, NetUtils.findHostIndex(new String[] { "127.1.0.1" }));
}