@Test
public void testInvalidEmail() throws Exception {

    EmailValidator validator = EmailValidator.instance();
    assertFalse(validator.validate("plainaddreess"));
    assertFalse(validator.validate(""));
    assertFalse(validator.validate("$#%"));
    assertFalse(validator.validate("Joe Smith <email@domain.com>"));
    assertFalse(validator.validate("domain.com"));
    assertFalse(validator.validate("email@domain@domain.com"));
    assertFalse(validator.validate("あいうえお@domain.com"));
    assertFalse(validator.validate("email@domain.com (Joe Smith)"));
    assertFalse(validator.validate("email@111.222.333.44444"));
    assertFalse(validator.validate("email@domain..com"));
    assertFalse(validator.validate("email@domain"));
}