ServiceWorkerPool { public ExecutorService createExecutor(String prefix) { return Executors.newFixedThreadPool(maxThreads, new ManagedThreadFactory(prefix)); } ServiceWorkerPool(Service s, EventHandler eh, int maxThreads); GenericObjectPool<Worker> createCommonsObjectPool(); ExecutorService createExecutor(String prefix); @Deprecated static void closeQuietly(ObjectPool<?> pool); void warmup(final GenericObjectPool<Worker> objectPool);  }
@Test public void testCreateExecutor() throws Exception { ExecutorService exec = createExecutor("testCreateExecutor"); assertNotNull(exec); ManagedThreadFactory.shutdownQuietly(exec, new TimeInterval()); }