@Test
	public void propertyPassthrough() {
		Properties properties = new Properties();
		MessageBus bus = mock(MessageBus.class);
		doReturn(new DirectChannel()).when(bus).bindDynamicProducer("queue:foo", properties);
		doReturn(new DirectChannel()).when(bus).bindDynamicPubSubProducer("topic:bar", properties);
		MessageBusAwareChannelResolver resolver = new MessageBusAwareChannelResolver(bus, properties);
		BeanFactory beanFactory = new DefaultListableBeanFactory();
		resolver.setBeanFactory(beanFactory);
		resolver.resolveDestination("queue:foo");
		resolver.resolveDestination("topic:bar");
		verify(bus).bindDynamicProducer("queue:foo", properties);
		verify(bus).bindDynamicPubSubProducer("topic:bar", properties);
	}
@author Mark Fisher
@author Gary Russell
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/bus/MessageBusAwareChannelResolverTests.java