@Test public void PropertyEditingExceptionの場合にフィールドエラーが設定される() { class T { } MethodInvocationException mie = new MethodInvocationException(new PropertyChangeEvent(new T(), "aaaa", null, null), new PropertyEditingException("message")); BeanPropertyBindingResult result = new BeanPropertyBindingResult(new T(), "Test"); processor.processPropertyAccessException(mie, result); assertThat(result.getFieldError(), notNullValue()); }