assertEquals(20, queue4.getDeliveringCount());
acknowledgeAll(receiver4);
receiver4.setMaxRefs(0);
receiver5.setMaxRefs(25);
queue5.deliver();
readOK = receiver5.waitForHandleInvocations(25, 20000);
assertTrue(readOK);
Thread.sleep(1000);
assertEquals(NUM_MESSAGES - 25, queue5.memoryRefCount());
assertEquals(25, queue5.getDeliveringCount());