### Question:
ValidatorStub implements Validator { @Override public boolean supports(Class<?> clazz) { return true; } ValidatorStub(String ... errorFields); void setGlobalError(); @Override boolean supports(Class<?> clazz); @Override void validate(Object target, Errors errors);  }### Answer:
@Test public void supportsShouldReturnTrue() { ValidatorStub validator = new ValidatorStub(); assertTrue(validator.supports(Object.class)); }