Map<String, VertxSyncEndpoint> endpoints = beanDefinitionContext.getBeansOfType(VertxSyncEndpoint.class);
Assert.assertEquals(endpoints.size(), 4);
// 1st message receiver
VertxSyncEndpoint vertxEndpoint = endpoints.get("vertxEndpoint1");
Assert.assertNotNull(vertxEndpoint.getVertxInstanceFactory());
Assert.assertEquals(vertxEndpoint.getVertxInstanceFactory(), beanDefinitionContext.getBean("vertxInstanceFactory"));
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getCorrelator().getClass(), DefaultMessageCorrelator.class);
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getAddress(), "news-feed1");
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getTimeout(), 5000L);
// 2nd message receiver
vertxEndpoint = endpoints.get("vertxEndpoint2");
Assert.assertNotNull(vertxEndpoint.getVertxInstanceFactory());
Assert.assertEquals(vertxEndpoint.getVertxInstanceFactory(), beanDefinitionContext.getBean("specialVertxInstanceFactory"));
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getCorrelator(), beanDefinitionContext.getBean("replyMessageCorrelator"));
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getMessageConverter(), beanDefinitionContext.getBean("messageConverter"));
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getHost(), "127.0.0.1");
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getPort(), 10105);
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getAddress(), "news-feed2");
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getTimeout(), 10000L);
// 3rd message receiver
vertxEndpoint = endpoints.get("vertxEndpoint3");
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getAddress(), "news-feed3");
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().isPubSubDomain(), true);
// 4th message receiver
vertxEndpoint = endpoints.get("vertxEndpoint4");
Assert.assertNotNull(vertxEndpoint.getActor());
Assert.assertEquals(vertxEndpoint.getEndpointConfiguration().getAddress(), "news-feed4");
Assert.assertEquals(vertxEndpoint.getActor(), beanDefinitionContext.getBean("testActor", TestActor.class));
}