Map<String, CamelEndpoint> endpoints = beanDefinitionContext.getBeansOfType(CamelEndpoint.class);
Assert.assertEquals(endpoints.size(), 3);
// 1st message receiver
CamelEndpoint camelEndpoint = endpoints.get("camelEndpoint1");
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getCamelContext(), beanDefinitionContext.getBean("camelContext"));
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed1");
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getTimeout(), 5000L);
// 2nd message receiver
camelEndpoint = endpoints.get("camelEndpoint2");
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getCamelContext(), beanDefinitionContext.getBean("specialCamelContext"));
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed2");
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getTimeout(), 10000L);
// 3rd message receiver
camelEndpoint = endpoints.get("camelEndpoint3");
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getMessageConverter(), beanDefinitionContext.getBean("messageConverter"));
Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed3");
Assert.assertEquals(camelEndpoint.getActor(), beanDefinitionContext.getBean("testActor", TestActor.class));
}