public void testAppend() {
String id = "blabla";
String dbKey = "TEST." + id;
jedis.del(dbKey);
testSubject.appendEvents("TEST", new SimpleDomainEventStream(
new GenericDomainEventMessage<StubDomainEvent>(id, 0, new StubDomainEvent()),
new GenericDomainEventMessage<StubDomainEvent>(id, 1, new StubDomainEvent()),
new GenericDomainEventMessage<StubDomainEvent>(id, 2, new StubDomainEvent()),
new GenericDomainEventMessage<StubDomainEvent>(id, 3, new StubDomainEvent()),
new GenericDomainEventMessage<StubDomainEvent>(id, 4, new StubDomainEvent()),
new GenericDomainEventMessage<StubDomainEvent>(id, 5, new StubDomainEvent())));
List<String> events = jedis.lrange(dbKey, 0, -1);
for (String key : events) {
System.out.println(key);
}