{
Connector connector = getConnectorAndAssert();
Service service = getTestService("anApple", Apple.class);
InboundEndpoint endpoint =
muleContext.getEndpointFactory().getInboundEndpoint(getTestEndpointURI());
try
{
connector.registerListener(null, null, service);