EmailValidator implements Serializable { public static EmailValidator getInstance() { return EMAIL_VALIDATOR; } protected  EmailValidator(boolean allowLocal); static EmailValidator getInstance(); static EmailValidator getInstance(boolean allowLocal); boolean isValid(String email); boolean isValidDomain(String domain); boolean isValidUser(String user);  }
@Test public void testgetInstance() { assertNotNull(EmailValidator.getInstance(true)); assertNotNull(EmailValidator.getInstance(false)); }