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