### Question:
EdfiRecordParser extends DefaultHandler { public static void parse(InputStream input, Resource schemaResource, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordParser parser = new EdfiRecordParser(messageReport, reportStats, source); parser.process(input, schemaResource); } EdfiRecordParser(AbstractMessageReport messageReport, ReportStats reportStats,
            Source source); static void parse(InputStream input, Resource schemaResource, AbstractMessageReport messageReport, ReportStats reportStats, Source source); void process(InputStream input, Resource schemaResource); @Override void warning(final SAXParseException ex); @Override void error(final SAXParseException ex); @Override void fatalError(SAXParseException exception);  }### Answer:
@Test(expected = IOException.class) public void testIOExceptionForSchema() throws Throwable { Resource schema = new ClassPathResource("does_not_exists.xsd"); Resource xml = new ClassPathResource("parser/InterchangeStudentParent/Student.xml"); AbstractMessageReport mr = Mockito.mock(AbstractMessageReport.class); EdfiRecordParser.parse(xml.getInputStream(), schema, mr, new SimpleReportStats(), new JobSource(xml.getFilename())); }