@Override
public DomainEventStream readEvents(String type, Object identifier) {
loadCounter.incrementAndGet();
DomainEventMessage message = storedEvents.get(identifier.toString());
if (message == null) {
throw new EventStreamNotFoundException(type, identifier);
}
return new SimpleDomainEventStream(Collections.singletonList(message));
}