NoopExecutorServiceWrapper implements ExecutorServiceWrapper { @Override public ExecutorService wrap(ExecutorService executor, String name, String... tags) { return executor; }  @Override ExecutorService wrap(ExecutorService executor, String name, String... tags); @Override ScheduledExecutorService wrap(
      ScheduledExecutorService executor, String name, String... tags); @Override CronExecutorService wrap(CronExecutorService executor, String name, String... tags);  }
@Test public void testWrapExecutorService() { ExecutorService executorService = Executors.newSingleThreadExecutor(); ExecutorService result = noopExecutorServiceWrapper.wrap( executorService, NoopExecutorServiceWrapper.class.getName(), "key", "value"); Assert.assertSame(result, executorService); }
@Test public void testWrapScheduledExecutorService() { ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor(); ScheduledExecutorService result = noopExecutorServiceWrapper.wrap( executorService, NoopExecutorServiceWrapper.class.getName(), "key", "value"); Assert.assertSame(result, executorService); }
@Test public void testWrapCronExecutorService() { CronExecutorService executorService = new CronThreadPoolExecutor(1); CronExecutorService result = noopExecutorServiceWrapper.wrap( executorService, NoopExecutorServiceWrapper.class.getName(), "key", "value"); Assert.assertSame(result, executorService); }