@Test
	public void testCustomMessageSerializer() throws Exception {
		RedisTemplate<String, Message<?>> template = new RedisTemplate<String, Message<?>>();
		template.setKeySerializer(new StringRedisSerializer());
		template.setValueSerializer(new TestMessageSerializer());
		template.setConnectionFactory(connectionFactory);
		template.afterPropertiesSet();

		adapter.setSerializer(new TestMessageSerializer());
		adapter.setExtractPayload(false);
		adapter.afterPropertiesSet();

		Message<?> message = template.boundListOps(QUEUE_NAME).rightPop();
		assertEquals(10l, message.getPayload());
	}
Integration test of {@link RedisQueueOutboundChannelAdapter}

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