}
@Test
public void testHeadersExchange() throws Exception {
HeadersExchange exchange = beanFactory.getBean("headers", HeadersExchange.class);
assertNotNull(exchange);
assertEquals("headers", exchange.getName());
assertTrue(exchange.isDurable());
assertFalse(exchange.isAutoDelete());
assertTrue(exchange.shouldDeclare());
assertEquals(1, exchange.getDeclaringAdmins().size());
}