// This is because the counter is decremented and then compared 'less than or equal to' with the
// max. If this test ever fails below this point, please review that this is still the case.
executor.submitLimited(nonblockingTask);
// let them all go.
synchronized(latch) { latch.set(true); latch.notifyAll(); }
final int totalCountingExecs = numThreads + 1 + (maxQueued - 1) + 1;
// wait until they all execute
assertTrue(TestUtils.poll(baseTimeoutMillis, execCount, new TestUtils.Condition<AtomicLong>() {