### Question:
IpUtils { public static boolean isInnerIp(String ipAddress) { final long ipNum = ipToLong(ipAddress); return isInner(ipNum, A_BEGIN, A_END) || isInner(ipNum, B_BEGIN, B_END) || isInner(ipNum, C_BEGIN, C_END) || LOCAL_IP.equals(ipAddress); }  static long ipToLong(String ipAddress); static boolean isInnerIp(String ipAddress); static String getIp(Channel channel);  }### Answer:
@Test public void testIsInnerIp() { assertTrue(IpUtils.isInnerIp("127.0.0.1")); assertTrue(IpUtils.isInnerIp("10.0.0.0")); assertTrue(IpUtils.isInnerIp("10.0.0.1")); assertTrue(IpUtils.isInnerIp("10.255.255.254")); assertTrue(IpUtils.isInnerIp("10.255.255.255")); assertTrue(IpUtils.isInnerIp("172.16.0.0")); assertTrue(IpUtils.isInnerIp("172.16.0.1")); assertTrue(IpUtils.isInnerIp("172.31.255.254")); assertTrue(IpUtils.isInnerIp("172.31.255.255")); assertTrue(IpUtils.isInnerIp("192.168.0.0")); assertTrue(IpUtils.isInnerIp("192.168.0.1")); assertTrue(IpUtils.isInnerIp("192.168.255.254")); assertTrue(IpUtils.isInnerIp("192.168.255.255")); assertFalse(IpUtils.isInnerIp("180.173.66.62")); }