URL inputUrl = common.class.getResource("package");
String inputPath = inputUrl.getPath();
String outputPath = inputPath + "/missing_opf_epub_file_actual_results.json";
String expectedOutputPath = inputPath + "/missing_opf_epub_file_expected_results.json";
inputPath += "/missing_opf_file";
OCFPackage ocf = new OCFMockPackage(inputPath);
CheckingReport report = new CheckingReport(inputPath, outputPath);
report.initialize();
ocf.setReport(report);
OPFChecker opfChecker = new OPFChecker(ocf, report, "test_single_opf", EPUBVersion.VERSION_3);
opfChecker.runChecks();
report.generate();
File actualOutput = new File(outputPath);
Assert.assertTrue("Output file is missing.", actualOutput.exists());