throws IOException, InterruptedException {
boolean mandatory = true;
boolean immdediate = true;
final CountDownLatch latch = new CountDownLatch(params.messageCount);
channel.addReturnListener(new ReturnListener() {
public void handleReturn(int replyCode, String replyText,
String exchange, String routingKey,
AMQP.BasicProperties properties, byte[] body) throws IOException {
latch.countDown();
}