q.offer(3);
Thread.sleep(sleep);
assertEquals(1, qLatch.getCount());
qLatch.countDown();
assertTrue("Remaining:" + qLatch.getCount(), qLatch.await(3, TimeUnit.SECONDS));
q.destroy();
}
@Test
public void testQueueOfferCommitSize() {
TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);