@SuppressWarnings({"unchecked"})
public AnnotatedSagaTestFixture(Class<? extends AbstractAnnotatedSaga> sagaType) {
eventScheduler = new StubEventScheduler();
GenericSagaFactory genericSagaFactory = new GenericSagaFactory();
genericSagaFactory.setResourceInjector(new AutowiredResourceInjector(registeredResources));
EventBus eventBus = new SimpleEventBus();
InMemorySagaRepository sagaRepository = new InMemorySagaRepository();
sagaManager = new AnnotatedSagaManager(sagaRepository, genericSagaFactory, sagaType);
sagaManager.setSuppressExceptions(false);
registeredResources.add(eventBus);