### Question:
AlphaNumericValidator implements ServiceAttributeValidator { @Override public boolean validate(Set<String> values) { for (String toTest : values) { if (StringUtils.isEmpty(toTest) || NOT_ALPHA_NUM.matcher(toTest).find()) { return false; } } return true; }  @Override boolean validate(Set<String> values);  }### Answer:
@Test(dataProvider = "data") public void checkCorrectness(String name, boolean expected) { boolean result = validator.validate(Collections.singleton(name)); assertThat(result).isEqualTo(expected); }