@Test
public void testGenerateListener() throws Exception {

  ClassicEngineBoot.getInstance().start();
  rtfOutput.generate( new MasterReport(), 1, new ByteArrayOutputStream(), 1 );
  verify( listener, times( 1 ) ).reportProcessingStarted( any( ReportProgressEvent.class ) );
  verify( listener, times( 1 ) ).reportProcessingFinished( any( ReportProgressEvent.class ) );
  verify( listener, atLeastOnce() ).reportProcessingUpdate( any( ReportProgressEvent.class ) );
}