component.setEndpoints(new JmsProviderEndpoint[] {endpoint});
container.activateComponent(component, "servicemix-jms");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
FileUtil.copyInputStream(new ClassPathResource("org/apache/servicemix/jms/HelloWorld-RPC-Input-OneWay.xml").getInputStream(), baos);
InOnly me = client.createInOnlyExchange();
me.getInMessage().setContent(new StringSource(baos.toString()));
me.setOperation(new QName("uri:HelloWorld", "OneWay"));
me.setService(new QName("uri:HelloWorld", "HelloService"));
client.sendSync(me);
assertEquals(ExchangeStatus.DONE, me.getStatus());
Message msg = jmsTemplate.receive("destination");
assertNotNull(msg);
System.err.println(((TextMessage) msg).getText());
}