### Question:
IpUtils { public static long ipToLong(String ipAddress) { final String[] array = StringUtils.split(ipAddress, "."); long result = 0; for (int i = IP_LOOP_NUM; i >= 0; i--) { result |= Long.parseLong(array[3 - i]) << (i * 8); } return result; }  static long ipToLong(String ipAddress); static boolean isInnerIp(String ipAddress); static String getIp(Channel channel);  }### Answer:
@Test public void testIpToLong() { assertTrue(2130706433 == IpUtils.ipToLong("127.0.0.1")); }