XmlValidationResult { public List<SAXParseException> getExceptions() { return exceptions; } XmlValidationResult(); boolean isValid(); void addError(SAXParseException exception); List<SAXParseException> getExceptions();  }
@SuppressWarnings({ "rawtypes", "unused" }) @Test public void testGetExceptions() { List listMock = mock(List.class); SAXParseException eMock = mock(SAXParseException.class); ReflectionTestUtils.setField(sut, "exceptions", listMock); List actualList = sut.getExceptions(); assertEquals(listMock, actualList); }