EventSchedulerService { public Boolean isRunning() { return (scheduledFuture != null && !scheduledFuture.isDone()); } @Inject  EventSchedulerService(EventSchedulerDao eventSchedulerDao, EventSchedulerRegistry eventSchedulerRegistry,
                                 @Named("eventScheduler.batchRead.intervalms") Integer batchReadInterval,
                                 @Named("eventScheduler.batchRead.batchSize") Integer batchSize,
                                 ObjectMapper objectMapper); void start(); void stop(); Boolean isRunning(); void setInitialDelay(Long initialDelay);  }
@Test public void testIdle() throws Exception { Thread.sleep(200); Assert.assertFalse(eventSchedulerService.isRunning()); verifyZeroInteractions(eventSchedulerRegistry); }