RouteTools { public static InetAddress ip(final String ip) { return com.google.common.net.InetAddresses.forString(ip); }  static boolean reachable(final String checkIp); static String getBestInterfaceAddress(); static boolean isLocal(final InetAddress addr); static InetAddress ip(final String ip); static String ip(final InetAddress ip);  }
@Test public void ipTest() { assertWithMessage("ip process ok 1").that(ip(ip("1.2.3.4"))).isEqualTo("1.2.3.4"); assertWithMessage("ip process ok 2").that(ip(ip("192.168.10.10"))).isEqualTo("192.168.10.10"); }