assertNotNull(url);
final ResourceManager resourceManager = new ResourceManager();
resourceManager.registerDefaults();
final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
final MasterReport report = (MasterReport) directly.getResource();
final MemoryByteArrayOutputStream mbos = new MemoryByteArrayOutputStream();
ExcelReportUtil.createXLS(report, new NoCloseOutputStream(mbos));
final ByteArrayInputStream bin = new ByteArrayInputStream(mbos.getRaw(), 0, mbos.getLength());
final Workbook workbook = WorkbookFactory.create(bin);
assertEquals(4, workbook.getNumberOfSheets());
assertEquals("Summary", workbook.getSheetAt(0).getSheetName());
assertEquals("AuthorPublisher A", workbook.getSheetAt(1).getSheetName());
assertEquals("AuthorPublisher B", workbook.getSheetAt(2).getSheetName());