// Set up the publisher.
circuitEnd = circuitFactory.createPublisherCircuitEnd(connection, testProps, 0L);
// Create a custom message monitor that will be updated on every message sent.
messageMonitor = new MessageMonitor();
break;
// Otherwise the receivers role is being assigned, so set this up to listen for messages.
case RECEIVER: