@Test
public void testAutoSchedule() {

  final UUID id = UUID.randomUUID();
  final IPentahoSession session = mock( IPentahoSession.class );
  final IPentahoAsyncExecutor executor = mock( IPentahoAsyncExecutor.class );
  final AutoScheduleListener listener = new AutoScheduleListener( id, session, threshold, executor );
  listener.reportProcessingStarted( event );
  listener.reportProcessingUpdate( event );
  listener.reportProcessingFinished( event );
  verify( executor, times( times ) ).preSchedule( id, session );
}