SpyEventPreprocessor decorator1 = new SpyEventPreprocessor();
SpyEventPreprocessor decorator2 = new SpyEventPreprocessor();
testSubject.setEventStreamDecorators(Arrays.asList(decorator1, decorator2));
UUID identifier = UUID.randomUUID();
when(mockEventStore.readEvents("test", identifier)).thenReturn(
new SimpleDomainEventStream(new GenericDomainEventMessage<String>(identifier, (long) 3,
"Mock contents",
MetaData.emptyInstance()
)));
TestAggregate aggregate = testSubject.load(identifier);
aggregate.apply(new StubDomainEvent());