protected void setUp() throws IOException {
super.setUp();
channel.confirmSelect();
channel.queueDeclare("confirm-test", true, true, false, null);
channel.basicConsume("confirm-test", true,
new DefaultConsumer(channel));
channel.queueDeclare("confirm-test-nondurable", false, true,
false, null);
channel.basicConsume("confirm-test-nondurable", true,
new DefaultConsumer(channel));
channel.queueDeclare("confirm-test-noconsumer", true,
true, false, null);
channel.queueDeclare("confirm-test-2", true, true, false, null);
channel.basicConsume("confirm-test-2", true,
new DefaultConsumer(channel));
channel.queueBind("confirm-test", "amq.direct",
"confirm-multiple-queues");
channel.queueBind("confirm-test-2", "amq.direct",
"confirm-multiple-queues");
}