final MasterReport report = new MasterReport();
report.setQuery("test");
report.setDataFactory(new TableDataFactory(report.getQuery(), model));
report.addExpression(itemSumFunction);
final ItemBand itemBand = report.getItemBand();
itemBand.addElement(createNumberElement(0, "value", "I1"));
itemBand.addElement(createNumberElement(100, "fn", "I2"));
final PageFooter pageFooter = report.getPageFooter();
pageFooter.addElement(createNumberElement(0, "value", "P1"));
pageFooter.addElement(createNumberElement(100, "fn", "P2"));
return report;