SpringValidationErrors implements ValidationErrors { public Errors getErrors() { return errors; }  void setErrors(Errors errors); Errors getErrors(); @Override void addError(Object bean, Field field, ValidatorAction va);  }
@Test public void testGetErrors01() throws Exception { SpringValidationErrors validation = new SpringValidationErrors(); Errors errors = new ErrorsImpl01(); ReflectionTestUtils.setField(validation, "errors", errors); Errors result = validation.getErrors(); assertSame(errors, result); }