XLSXOutput implements ReportOutputHandler { public void setTemplateData( final byte[] templateData ) { this.templateData = templateData; } XLSXOutput(); void setTemplateDataFromStream( final InputStream templateInputStream ); byte[] getTemplateData(); void setTemplateData( final byte[] templateData ); Object getReportLock(); int paginate( MasterReport report, int yieldRate ); int generate( final MasterReport report, final int acceptedPage, final OutputStream outputStream,
                       final int yieldRate ); boolean supportsPagination(); void close();  }
@Test public void testSetTemplateData() throws Exception { Assert.assertNull( xlsxOutput.getTemplateData() ); byte[] data = new byte[] { 5 }; xlsxOutput.setTemplateData( data ); Assert.assertEquals( data, xlsxOutput.getTemplateData() ); }