JmsSyncEndpoint endpoint = new JmsSyncEndpoint();
endpoint.getEndpointConfiguration().setConnectionFactory(connectionFactory);
endpoint.getEndpointConfiguration().setDestination(destination);
final Message message = new DefaultMessage("<TestRequest><Message>Hello World!</Message></TestRequest>");
Map<String, Object> responseHeaders = new HashMap<String, Object>();
TextMessage jmsResponse = new TextMessageImpl("<TestResponse>Hello World!</TestResponse>", responseHeaders);
reset(connectionFactory, destination, connection, session, messageConsumer, messageProducer, tempReplyQueue);