@Test
public void invalidTests() throws Exception {

    IPAddressValidator validator = IPAddressValidator.instance();
    assertFalse(validator.validate("10.0.0.x"));
    assertFalse(validator.validate("10.0.0.255.0"));
    assertFalse(validator.validate("10.0.256.0"));
    assertFalse(validator.validate("255.0.0"));
    assertFalse(validator.validate("0"));
}