while (messageConsumer1!=null || messageConsumer2!=null);
assertEquals(iterationCount, c1 + c2);
if(lastMessageConsumer1 != null)
lastMessageConsumer1.acknowledge();
if(lastMessageConsumer2 != null)
lastMessageConsumer2.acknowledge();
queueConnection.stop();
session1.close();