@Test
public void testValidEmail() throws Exception {

    EmailValidator validator = EmailValidator.instance();
    assertTrue(validator.validate("mail@domain3.com"));
    assertTrue(validator.validate("mail@domain.com"));
    assertTrue(validator.validate("firstname.lastname@domain.com"));
    assertTrue(validator.validate("email@subdomain.domain.com"));
    assertTrue(validator.validate("1234567890@domain.com"));
    assertTrue(validator.validate("email@domain-one.com"));
    assertTrue(validator.validate("_______@domain.com"));
    assertTrue(validator.validate("email@domain.name"));
    assertTrue(validator.validate("email@domain.co.jp"));
    assertTrue(validator.validate("firstname-lastname@domain.com"));
}