Thread.sleep(50);
    public void testSendSync() throws Exception {        AbstractXmlApplicationContext ctx = new ClassPathXmlApplicationContext("org/apache/servicemix/jbi/nmr/flow/jms/client.xml");        try {            ServiceMixClient client = (ServiceMixClient) ctx.getBean("client");            Thread.sleep(2000);            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);            assertNotNull(exchange.getOutMessage());            System.out.println("GOT RESPONSE; exchange.out=" + new SourceTransformer().toString(exchange.getOutMessage().getContent()));            client.done(exchange);        } finally {            ctx.close();        }    }