ServiceWorkerPool { @Deprecated public static void closeQuietly(ObjectPool<?> pool) { Closer.closeQuietly(pool); } 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 @SuppressWarnings("deprecation") public void testCloseQuietly() { closeQuietly((GenericObjectPool) null); closeQuietly(new GenericObjectPool(new DummyPooledObjectFactory())); closeQuietly(new GenericObjectPool(new DummyPooledObjectFactory()) { @Override public void close() { throw new RuntimeException(); } }); }