ep.setBean(new ConsumerBean());
ep.setBeanType(ConsumerBean.class);
    public void test() throws Exception {        BeanComponent bc = new BeanComponent();        BeanEndpoint ep = new BeanEndpoint();        ep.setService(new QName("bean"));        ep.setEndpoint("endpoint");        ep.setBean(new ConsumerBean());        bc.setEndpoints(new BeanEndpoint[] { ep });        jbi.activateComponent(bc, "servicemix-bean");                EchoComponent echo1 = new EchoComponent(new QName("urn", "service1"), "endpoint");        jbi.activateComponent(echo1, "echo1");                EchoComponent echo2 = new EchoComponent(new QName("urn", "service2"), "endpoint");        jbi.activateComponent(echo2, "echo2");        jbi.start();        ServiceMixClient client = new DefaultServiceMixClient(jbi);        InOut me = client.createInOutExchange();        me.setService(new QName("bean"));        me.setOperation(new QName("receive"));        NormalizedMessage nm = me.getInMessage();        nm.setContent(new StringSource("<hello>world</hello>"));        client.sendSync(me);        assertExchangeWorked(me);        client.done(me);    }