EmailValidator { public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); }  static boolean valid(String email);  }
@Test public void goodTests() { for (String test : goodTests) { assertTrue(test, EmailValidator.valid(test)); } }
@Test public void badTests() { for (String test : badTests) { assertFalse(test, EmailValidator.valid(test)); } }