{
log.info("+++ testThreadPoolConfig()");
channel1 = factory1.createChannel("queues");
channel1.connect("test");
TP tp1 = getTP((JChannel) channel1);
assertEquals(3000, tp1.getIncomingKeepAliveTime());
assertEquals(22, tp1.getIncomingMaxPoolSize());
assertEquals(2, tp1.getIncomingMinPoolSize());
assertEquals(750, tp1.getIncomingMaxQueueSize());
assertEquals(4000, tp1.getOOBKeepAliveTime());
assertEquals(12, tp1.getOOBMaxPoolSize());
assertEquals(3, tp1.getOOBMinPoolSize());
assertEquals(75, tp1.getOOBMaxQueueSize());
Executor exec = tp1.getDefaultThreadPool();
assertNotNull(exec);
exec = tp1.getOOBThreadPool();
assertNotNull(exec);
// Confirm that the no-pool config doesn't create a pool
channel2 = factory1.createChannel("nonconcurrent1");
channel2.connect("test");
TP tp2 = getTP((JChannel) channel2);
assertFalse(tp2.getDefaultThreadPool() instanceof ThreadPoolExecutor);
assertFalse(tp2.getOOBThreadPool() instanceof ThreadPoolExecutor);
}