throw new RuntimeException(e);
}
}
};
container.activateComponent(new ActivationSpec("receiver", receiver));
ServiceMixClient client = new DefaultServiceMixClient(container);
ServiceEndpoint[] endpoints = client.getContext().getExternalEndpoints(null);
assertNotNull(endpoints);
assertEquals(1, endpoints.length);
assertNull(client.getContext().getEndpointDescriptor(endpoints[0]));
ServiceEndpoint se = client.getContext().resolveEndpointReference(endpoints[0].getAsReference(null));
assertNull(client.getContext().getEndpointDescriptor(se));
InOnly me = client.createInOnlyExchange();
me.setEndpoint(se);
client.send(me);
receiver.getMessageList().assertMessagesReceived(1);
}