BaseCommandValidator implements Validator { @Override public boolean supports(final Class clazz) { return BaseCommand.class.isAssignableFrom(clazz); }  @Override boolean supports(final Class clazz); @Override void validate(final Object target, final Errors errors);  }
@Test public void testSupports() { BaseCommandValidator validator = new BaseCommandValidator(); assertTrue(validator.supports(BaseCommand.class)); }