### Question:
EmailValidator implements ServiceAttributeValidator { public boolean validate(Set<String> values) { for (String value : values) { if (!validate(value)) { return false; } } return true; }  boolean validate(Set<String> values); boolean validate(String value);  }### Answer:
@Test(dataProvider = "data") public void checkCorrectness(String name, boolean expected) { boolean result = validator.validate(Collections.singleton(name)); assertThat(result).isEqualTo(expected); }