public void testPool() throws InterruptedException {
long keepAlive = 30*1000;
PooledExecutor executor = new PooledExecutor(5);
executor.setMinimumPoolSize(1);
executor.waitWhenBlocked();
executor.setKeepAliveTime(keepAlive);
executor.setThreadFactory(new ThreadFactory() {
public Thread newThread(final Runnable command) {
synchronized (poolLock) {
count++;