testSubject = new DisruptorCommandBus(
inMemoryEventStore, eventBus,
new DisruptorConfiguration().setBufferSize(4)
.setProducerType(ProducerType.MULTI)
.setWaitStrategy(new SleepingWaitStrategy())
.setRollbackConfiguration(new RollbackOnAllExceptionsConfiguration())
.setInvokerThreadCount(2)
.setPublisherThreadCount(3));
testSubject.subscribe(StubCommand.class.getName(), stubHandler);
testSubject.subscribe(CreateCommand.class.getName(), stubHandler);
testSubject.subscribe(ErrorCommand.class.getName(), stubHandler);