report2.setEndTime(endTime2);
report2.setEasyBatchResult("result2");
report2.setDataSource("datasource2");
EasyBatchReportsAggregator reportsAggregator = new DefaultEasyBatchReportsAggregator();
EasyBatchReport finalReport = reportsAggregator.aggregateReports(report1, report2);
assertEquals(new Integer(10), finalReport.getTotalRecords()); //sum of total records
assertEquals(2, finalReport.getFilteredRecordsCount());// sum of filtered records
assertEquals(2, finalReport.getIgnoredRecordsCount());// sum of ignored records
assertEquals(2, finalReport.getRejectedRecordsCount());// sum of rejected records