CachingContext implements Closeable { @Override public void close() throws IOException { if (ownsExecutorService) { executorService.shutdownNow(); } } CachingContext(ExperimentsCache cache,
                          Experiment.BuilderFactory builderFactory,
                          ExecutorService executorService);  CachingContext(ExperimentsCache cache,
                          Experiment.BuilderFactory builderFactory); void invalidateAll(boolean async); void invalidate(final String experimentName, boolean async); void update(Experiment experiment); void delete(String experimentName); boolean checkIfAnyStale(); boolean checkIfStale(String experimentName); @Override void close();  }
@Test public void testClose() throws IOException { context.close(); verify(executorService, never()).shutdown(); }