@Before
	public void setUp() {
		messages.clear();
		this.connectionFactory = redisAvailableRule.getResource();
		DirectChannel outputChannel = new DirectChannel();
		outputChannel.setBeanFactory(BusTestUtils.MOCK_BF);
		outputChannel.subscribe(new TestMessageHandler());

		this.currentQueueName = QUEUE_NAME + ":" + System.nanoTime();

		adapter = new RedisQueueMessageDrivenEndpoint(currentQueueName, connectionFactory);
		adapter.setBeanFactory(BusTestUtils.MOCK_BF);
		adapter.setOutputChannel(outputChannel);
	}
Integration test of {@link RedisQueueInboundChannelAdapter}

@author Jennifer Hickey
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/redis/RedisQueueInboundChannelAdapterTests.java