protected DispatchAsync newDispatcher(Map<Class<?>, ClientActionHandler<?, ?>> actionHandlerMappings)
{
Dispatch dispatch = mock(Dispatch.class);
Injector injector = Guice.createInjector(new MockClientHandlerModule(actionHandlerMappings));
DispatchAsync dispatcher = new TestDispatchAsync(new TestDispatchService(dispatch), injector);
return dispatcher;
}