// Create a JFreeReport from the XML file
MasterReport report = parseReport(reportDefinition);
// Create the data for the report
IncomeStatementReportData reportData = new IncomeStatementReportData();
TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
report.setDataFactory(tableDataFactory);
FileOutputStream outputStream = new FileOutputStream(new File(outputFilename));
HtmlReportUtil.createStreamHTML(report, outputStream);
// Comparing the File just generated with the golden version
//isEqual = compareHtml(inputFileName, outputFilename, logFile);