new TestEventHandler(EventType.M_SERVER_SHUTDOWN, lock, counter));
}
// Now interrupt the running Executor
synchronized (lock) {
lock.set(false);
lock.notifyAll();
}
// Make sure threads are still around even after their timetolive expires.
Thread.sleep(executor.keepAliveTimeInMillis * 2);
assertEquals(maxThreads, pool.getPoolSize());