Map<String, ChannelEndpointAdapter> adapters = beanDefinitionContext.getBeansOfType(ChannelEndpointAdapter.class);
Assert.assertEquals(adapters.size(), 1);
// 1st endpoint adapter
ChannelEndpointAdapter adapter = adapters.get("endpointAdapter");
Assert.assertEquals(adapter.getName(), "endpointAdapter");
Assert.assertEquals(adapter.getEndpointConfiguration().getTimeout(), 10000L);
Assert.assertEquals((adapter.getEndpointConfiguration()).getChannelName(), "serverChannel");
Assert.assertEquals(adapter.getEndpointConfiguration().isUseObjectMessages(), false);
}