@Test
public void testDispatchReject() throws Exception {
this.dispatcher.stop();
PoolDispatcher.MAX_POOL_SIZE_FACTOR = 1;
PoolDispatcher.POOL_QUEUE_SIZE_FACTOR = 1;
this.dispatcher = new PoolDispatcher(1, 60, TimeUnit.SECONDS, new ThreadPoolExecutor.AbortPolicy(),"test");
this.dispatcher.dispatch(new Runnable() {
public void run() {
while (!Thread.currentThread().isInterrupted()) {
}