final List<Envelope> received = new ArrayList<Envelope>();
Channel channel = conn.createChannel();
channel.queueDeclare("sammyq", false, false, true, null);
channel.queueBind("sammyq", EXCHANGE, "route1");
channel.basicConsume("sammyq", true, new DefaultConsumer(channel) {
@Override
public void handleDelivery(String consumerTag,
Envelope envelope,
AMQP.BasicProperties properties,