public void testSendSync() throws Exception{
ApplicationContext ctx=new ClassPathXmlApplicationContext("org/servicemix/jbi/nmr/flow/jms/client.xml");
ServiceMixClient client=(ServiceMixClient) ctx.getBean("client");
Thread.sleep(5000);
InOut exchange=client.createInOutExchange();
exchange.setService(new QName("http://www.habuma.com/foo","pingService"));
NormalizedMessage in=exchange.getInMessage();
in.setContent(new StringSource("<ping>Pinging you</ping>"));
System.out.println("SENDING; exchange.status="+exchange.getStatus());
client.sendSync(exchange);