EmailAddressValidator implements Validator { @Override public boolean supports(Class<?> clazz) { return String.class.equals(clazz); }  @Override boolean supports(Class<?> clazz); @Override void validate(Object o, Errors errors);  }
@Test public void supports() { Assert.assertThat(new EmailAddressValidator().supports(String.class), is(true)); }