context.rebind( QUEUE_NAME, queue );
// inbound is to simulate a jms message arriving at a gateway endpoint.
TextMessageImpl inBoundJmsMessage = new TextMessageImpl();
inBoundJmsMessage.setJMSReplyTo( queue );
new DefaultESBPropertiesSetter().setPropertiesFromJMSMessage( inBoundJmsMessage, msg );
JMSRouter router = new JMSRouter( createConfigTree() );
// outbound is to simulate a new jms message that is about to leave the ESB.
TextMessageImpl outBoundJmsMessage = new TextMessageImpl();