public void setUp() throws Exception
{
//Create a new ProtocolHandler with a fake connection.
_handler = new AMQProtocolHandler(new MockAMQConnection("amqp://guest:guest@client/test?brokerlist='tcp://localhost:1'"));
_handler.setNetworkConnection(new TestNetworkConnection());
AMQBody body = new BasicRecoverSyncOkBody(ProtocolVersion.v8_0);
_blockFrame = new AMQFrame(0, body);
_handleCountDown = new CountDownLatch(1);
_logger.info("Creating _Listener that should also receive the thrown exception.");