muleContext.getRegistry().registerEndpointBuilder("&myNamedConcreateEndpoint",
new EndpointURIEndpointBuilder("test://address", muleContext));
String uri = "&myNamedConcreateEndpoint";
EndpointFactory endpointFactory = new DefaultEndpointFactory();
endpointFactory.setMuleContext(muleContext);
ImmutableEndpoint ep = endpointFactory.getOutboundEndpoint(uri);
assertEquals(DefaultOutboundEndpoint.class, ep.getClass());
assertEquals(ep.getEndpointURI().getUri().toString(), "test://address");
assertTrue(ep instanceof OutboundEndpoint);
}