IPTools { public static boolean isIPv6HexCompressedAddress(final String address) { return address != null && IPV6_HEX_COMPRESSED_PATTERN.matcher(address).matches(); } private  IPTools(); static boolean isIPv4Address(final String address); static boolean isIPv6StdAddress(final String address); static boolean isIPv6HexCompressedAddress(final String address); static boolean isIPv6Address(final String address); static InetAddress getLocalIPv4Address(); static ArrayList<InetAddress> getLocalIPv4Addresses(); static boolean isIpAddressLocalhost(InetAddress addr); static boolean isIpAddressLocalNetwork(InetAddress addr);  }
@Test @Ignore public void testIPv6HexCompressedAddress() { for (String address : getIPv6AddressesHexCompresed()) { assertTrue(IPTools.isIPv6HexCompressedAddress(address)); } }