Map<String, Object> cache = new HashMap<String, Object>();
ThreadPoolBuilder builder = new ThreadPoolBuilder(name.getTableNameString(), new Configuration(false));
ThreadPoolExecutor exec = ThreadPoolManager.getExecutor(builder, cache);
assertNotNull("Got a null exector from the pool!", exec);
//shutdown the pool and ensure that it actually shutdown
exec.shutdown();
ThreadPoolExecutor exec2 = ThreadPoolManager.getExecutor(builder, cache);
assertFalse("Got the same exectuor, even though the original shutdown", exec2 == exec);
}
@Test