public void testCreateInboundEndpointFromNamedConcreteEndpoint() throws Exception
{
muleContext.getRegistry().registerEndpointBuilder("&myNamedConcreateEndpoint",
new EndpointURIEndpointBuilder("test://address", muleContext));
String uri = "&myNamedConcreateEndpoint";
EndpointFactory endpointFactory = new DefaultEndpointFactory();
endpointFactory.setMuleContext(muleContext);
ImmutableEndpoint ep = endpointFactory.getInboundEndpoint(uri);
assertEquals(DefaultInboundEndpoint.class, ep.getClass());
assertEquals(ep.getEndpointURI().getUri().toString(), "test://address");
assertTrue(ep instanceof InboundEndpoint);
}