### Question:
IpUtils { public boolean isNumericIpAddress(String ip) { try { Integer.parseUnsignedInt(ip); return true; } catch (NumberFormatException ex) { return false; } }  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 testIsNumericIpAddress() { Assert.assertFalse(ipUtils.isNumericIpAddress(ipDec)); Assert.assertFalse(ipUtils.isNumericIpAddress(ipHex)); Assert.assertFalse(ipUtils.isNumericIpAddress(ipOct)); Assert.assertFalse(ipUtils.isNumericIpAddress(ipBin)); Assert.assertTrue(ipUtils.isNumericIpAddress(ipNum)); }