// Create a JFreeReport from the XML file
MasterReport report = parseReport(reportDefinition);
// Create the data for the report
SalesByTerritoryReportData reportData = new SalesByTerritoryReportData();
TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
report.setDataFactory(tableDataFactory);
FileOutputStream outputStream = new FileOutputStream(new File(outputFilename));
//HtmlReportUtil.createStreamHTML(report, outputStream);
PdfReportUtil.createPDF(report, outputStream);
isEqual = comparePdf(inputFileName, outputFilename, logFile);