ErrorHandlerImpl implements ErrorHandler { public List<SAXParseException> getExceptions() { return result.getExceptions(); } ErrorHandlerImpl(XmlValidationResult result); @Override void warning(SAXParseException exception); @Override void error(SAXParseException exception); @Override void fatalError(SAXParseException exception); List<SAXParseException> getExceptions();  }
@Test public void testGetExceptions() { sut.getExceptions(); verify(resultMock, times(1)).getExceptions(); }