ValidationErrorException extends RuntimeException { public Errors getErrors() { return errors; } ValidationErrorException();  ValidationErrorException(String message);  ValidationErrorException(String message, Throwable cause);  ValidationErrorException(Throwable cause);  ValidationErrorException(DataValueObject dataValueObject,
            Errors errors); DataValueObject getDataValueObject(); Errors getErrors();  }
@Test public void testGetErrors001() { DataValueObject dataValueObject = new DataValueObject("hoge"); Errors errors = new BindException("value", "String"); ValidationErrorException ex = new ValidationErrorException( dataValueObject, errors); assertNotNull(ex.getErrors()); assertEquals(BindException.class, ex.getErrors().getClass()); }