@Before public void setUp() throws Exception { eventBus = new CountingEventBus(); stubHandler = new StubHandler(); inMemoryEventStore = new InMemoryEventStore(); inMemoryEventStore.appendEvents( StubAggregate.class.getSimpleName(), new SimpleDomainEventStream( new GenericDomainEventMessage<StubDomainEvent>( aggregateIdentifier, 0, new StubDomainEvent()))); }