// The thrown runtime exception should get intercepted by the
// consumer exception handler, and result in a clean shut down.
public void testCloseWithFaultyConsumer() throws Exception{
SpecialConnection connection = new SpecialConnection();
Channel channel = connection.createChannel();
channel.exchangeDeclare("x", "direct");
channel.queueDeclare("q", false, false, false, null);
channel.queueBind("q", "x", "k");
channel.basicConsume("q", true, new DefaultConsumer(channel){
@Override