StatisticsService { public void stopProcessCountJob() { scheduledExecutorService.shutdown(); } StatisticsService(final CoordinatorRegistryCenter coordinatorRegistryCenter, final JobConfiguration jobConfiguration); void startProcessCountJob(); void stopProcessCountJob();  }
@Test public void assertStopProcessCountJob() { statisticsService.stopProcessCountJob(); verify(scheduledExecutorService).shutdown(); }