CoreCountBasedScheduledExecutorServiceProvider implements Provider<ScheduledExecutorService> { @PreDestroy protected void shutdown() { if (service != null) service.shutdown(); }  @Override ScheduledExecutorService get();  }
@Test public void shouldNotCrashOnUnusedShutdown() { CoreCountBasedScheduledExecutorServiceProvider provider = new CoreCountBasedScheduledExecutorServiceProvider(); provider.shutdown(); }