ValidationReport report = new ValidationReport(inputPath);
report.initialize();
File inputEpub = new File(inputPath);
EpubCheck check = new EpubCheck(inputEpub, report);
Assert.assertEquals("The file should have generated warnings.", 6, check.doValidate());
report.generate();
List<MessageId> fatals = new ArrayList<MessageId>();
fatals.add(MessageId.PKG_008);
List<MessageId> errors = new ArrayList<MessageId>();
errors.add(MessageId.PKG_003);
Assert.assertEquals("The fatal results do not match", fatals, report.getFatalErrorIds());