} catch (InterruptedException ie) { }
}
});
}
// First, add two tasks and make sure the pool size follows
pool.submit(tasks.get(0));
assertEquals(1, pool.getPoolSize());
pool.submit(tasks.get(1));
assertEquals(2, pool.getPoolSize());
// Next, terminate those tasks and then make sure the pool is still the