@Override
	protected AbstractRedisRepository<String, Integer> createRepository() {
		return new AbstractRedisRepository<String, Integer>("_test", new StringRedisTemplate(connectionFactory)) {

			@Override
			protected String serializeId(Integer id) {
				// Need padding to be comparable
				return String.format("%05d", id);
			}

			@Override
			protected String serialize(String entity) {
				return entity;
			}

			@Override
			protected Integer keyFor(String entity) {
				return NUMBERS.indexOf(entity);
			}

			@Override
			protected Integer deserializeId(String string) {
				return Integer.valueOf(string);
			}

			@Override
			protected String deserialize(Integer id, String v) {
				return v;
			}
		};
	}
Tests for {@link AbstractRedisRepository}.

@author Eric Bottard
spring-xd-analytics/src/test/java/org/springframework/xd/store/AbstractRedisRepositoryTests.java