@Test
public void testValidateFormat() throws IpAddressException {

  IpAddressUtil.validateFormat("192.168.0.1");
  IpAddressUtil.validateFormat("192.168.01.255");
  IpAddressUtil.validateFormat("192.168.01.255 ");
  exception.expect(IpAddressException.class);
  IpAddressUtil.validateFormat("192.168");
  IpAddressUtil.validateFormat("192.168.1");
  IpAddressUtil.validateFormat("192.168.01.256.");
  IpAddressUtil.validateFormat("192.168.01.256");
}