Map<String, JmsEndpointAdapter> adapters = beanDefinitionContext.getBeansOfType(JmsEndpointAdapter.class);
Assert.assertEquals(adapters.size(), 1);
// 1st endpoint adapter
JmsEndpointAdapter adapter = adapters.get("endpointAdapter");
Assert.assertEquals(adapter.getName(), "endpointAdapter");
Assert.assertEquals(adapter.getEndpointConfiguration().getTimeout(), 2500L);
Assert.assertEquals((adapter.getEndpointConfiguration()).getDestinationName(), "serverQueue");
Assert.assertEquals((adapter.getEndpointConfiguration()).getReplyDestinationName(), "replyQueue");
Assert.assertEquals(adapter.getEndpointConfiguration().isUseObjectMessages(), false);
Assert.assertEquals((adapter.getEndpointConfiguration()).getConnectionFactory(), beanDefinitionContext.getBean("connectionFactory", ConnectionFactory.class));
}