### Question:
IpUtils { public boolean isHexEncodedIpAddress(String ip) { return HEX_PATTERN.matcher(ip).matches(); }  boolean isIpAddress(String ip); boolean isDecimalIpAddress(String ip); boolean isBinaryIpAddress(String ip); boolean isOctalEncodedIpAddress(String ip); boolean isHexEncodedIpAddress(String ip); boolean isNumericIpAddress(String ip); InetAddress toInetAddress(String ip);  }### Answer:
@Test public void testIsHexEncodedIpAddress() { Assert.assertFalse(ipUtils.isHexEncodedIpAddress(ipDec)); Assert.assertTrue(ipUtils.isHexEncodedIpAddress(ipHex)); Assert.assertFalse(ipUtils.isHexEncodedIpAddress(ipOct)); Assert.assertFalse(ipUtils.isHexEncodedIpAddress(ipBin)); Assert.assertFalse(ipUtils.isHexEncodedIpAddress(ipNum)); }