assertEquals("bar", exchange.getArguments().get("foo"));
}
@Test
public void testDirectExchangeWithReferencedArguments() throws Exception {
DirectExchange exchange = beanFactory.getBean("direct-ref-arguments", DirectExchange.class);
assertNotNull(exchange);
assertEquals("direct-ref-arguments", exchange.getName());
assertEquals("bar", exchange.getArguments().get("foo"));
}