path.getAbsolutePath());
component.getServiceUnitManager().start("provider");
// Call it
DefaultServiceMixClient client = new DefaultServiceMixClient(container);
RobustInOnly in = client.createRobustInOnlyExchange();
in.setInterfaceName(new QName("http://http.servicemix.org/Test",
"ProviderInterface"));
in.getInMessage().setContent(
new StreamSource(new ByteArrayInputStream(msg.getBytes())));
in.getInMessage().setProperty(JbiConstants.HTTP_DESTINATION_URI,
"http://localhost:9192/CheckAvailability");
long t0 = System.currentTimeMillis();
client.sendSync(in);
long t1 = System.currentTimeMillis();
assertTrue(in.getStatus() == ExchangeStatus.DONE);
// Check we received the message
receiver.getMessageList().assertMessagesReceived(1);
component.getServiceUnitManager().stop("provider");