source: class IpParserUtilTest {
  
      @Test
      public void test_ip2ByteArray_ipv4_exception() throws Exception {
  
target:         // ipv4 with char
          try {
              IpParserUtil.ip2ByteArray("a.1.1.1");
              fail();
          } catch (IllegalArgumentException expected) {
              expected.printStackTrace();
          }
          
          // ipv4_minus
          try {
              IpParserUtil.ip2ByteArray("-2.168.0.13");
              fail();
          } catch (IllegalArgumentException expected) {
              expected.printStackTrace();
          }
  
          // ipv4 overflow
          try {
              IpParserUtil.ip2ByteArray("1.1.1.256");
              fail();
          } catch (IllegalArgumentException expected) {
              expected.printStackTrace();
          }
  
          // ipv4 too long
          try {
              IpParserUtil.ip2ByteArray("192.168.0.13.1");
              fail();
          } catch (IllegalArgumentException expected) {
              expected.printStackTrace();
          }
      }
  
  }