reset(applicationContext);
expect(applicationContext.containsBean("vertxInstanceFactory")).andReturn(true).times(2);
expect(applicationContext.getBean("vertxInstanceFactory", VertxInstanceFactory.class)).andReturn(instanceFactory).times(2);
replay(applicationContext);
Endpoint endpoint = component.createEndpoint("vertx:news", context);
Assert.assertEquals(endpoint.getClass(), VertxEndpoint.class);
Assert.assertEquals(((VertxEndpoint)endpoint).getEndpointConfiguration().getAddress(), "news");
Assert.assertEquals(((VertxEndpoint)endpoint).getEndpointConfiguration().isPubSubDomain(), false);
Assert.assertEquals(((VertxEndpoint) endpoint).getVertxInstanceFactory(), instanceFactory);
Assert.assertEquals(((VertxEndpoint) endpoint).getEndpointConfiguration().getTimeout(), 5000L);
endpoint = component.createEndpoint("eventbus:news-feed", context);
Assert.assertEquals(endpoint.getClass(), VertxEndpoint.class);
Assert.assertEquals(((VertxEndpoint)endpoint).getEndpointConfiguration().getAddress(), "news-feed");
Assert.assertEquals(((VertxEndpoint)endpoint).getEndpointConfiguration().isPubSubDomain(), false);
Assert.assertEquals(((VertxEndpoint) endpoint).getVertxInstanceFactory(), instanceFactory);
Assert.assertEquals(((VertxEndpoint) endpoint).getEndpointConfiguration().getTimeout(), 5000L);