FileConnector c = (FileConnector) muleContext.getRegistry().lookupConnector("fileConnector2");
assertNotNull(c);
assertNotNull(c.getServiceOverrides());
EndpointBuilder builder = new EndpointURIEndpointBuilder("file:///temp?connector=fileConnector1",
muleContext);
builder.setConnector(c);
endpoint = muleContext.getEndpointFactory().getInboundEndpoint(builder);
assertNotNull(((AbstractConnector) endpoint.getConnector()).getServiceOverrides());
EndpointBuilder builder2 = new EndpointURIEndpointBuilder("file:///temp?connector=fileConnector3",
muleContext);
builder.setConnector(c);
endpoint = muleContext.getEndpointFactory().getInboundEndpoint(builder2);
assertNull(((AbstractConnector) endpoint.getConnector()).getServiceOverrides());
EndpointBuilder builder3 = new EndpointURIEndpointBuilder("file:///temp?connector=fileConnector2",
muleContext);
builder.setConnector(c);
endpoint = muleContext.getEndpointFactory().getInboundEndpoint(builder3);
assertNotNull(((AbstractConnector) endpoint.getConnector()).getServiceOverrides());