Map<String, StaticResponseEndpointAdapter> adapters = beanDefinitionContext.getBeansOfType(StaticResponseEndpointAdapter.class);
Assert.assertEquals(adapters.size(), 1);
// 1st endpoint adapter
StaticResponseEndpointAdapter adapter = adapters.get("endpointAdapter");
Assert.assertEquals(StringUtils.trimAllWhitespace(adapter.getMessagePayload()), "<TestMessage><Text>Hello!</Text></TestMessage>");
Assert.assertEquals(adapter.getMessageHeader().get("Operation"), "sayHello");
}