}
@Test
public void testModelConfig() throws Exception
{
Model model = muleContext.getRegistry().lookupModel("main");
assertNotNull(model);
assertEquals("main", model.getName());
if (legacy)
{
assertTrue(model.getEntryPointResolverSet() instanceof LegacyEntryPointResolverSet);
}
else
{
assertTrue(model.getEntryPointResolverSet() instanceof TestEntryPointResolverSet);
}
assertTrue(model.getExceptionListener() instanceof TestExceptionStrategy);
assertTrue(((AbstractExceptionListener) model.getExceptionListener()).getMessageProcessors().size() > 0);
OutboundEndpoint ep = (OutboundEndpoint) ((AbstractExceptionListener) model.getExceptionListener()).getMessageProcessors().get(0);
assertEquals("test://component.exceptions", ep.getEndpointURI().toString());
// assertTrue(model.isComponentRegistered("orangeComponent"));
}