### Question:
IpAddressUtils { public static long parse(String ipAddress) { long num = 0L; String[] array = StringUtils.split(ipAddress, ".", 4); for (int i = 0; i < 4; i++) { num = num * 256; num += Long.parseLong(array[i]); } return num; }  static long parse(String ipAddress); static String format(long ipAddress); static long getNetworkAddress(String cidr); static long getNetworkAddress(String ipAddress, int prefix); static long getNetworkAddress(long ipAddress, int prefix); static long getBroadcastAddress(String cidr); static long getBroadcastAddress(String ipAddress, int prefix); static long getBroadcastAddress(long ipAddress, int prefix);  }### Answer:
@Test public void testParse() { assertEquals(0L, IpAddressUtils.parse("0.0.0.0")); assertEquals((1L << 32) - 1, IpAddressUtils.parse("255.255.255.255")); long address = (1L << 24) * 192 + (1L << 16) * 168 + (1L << 8) * 1 + 1L * 5; assertEquals(address, IpAddressUtils.parse("192.168.1.5")); }