@SuppressWarnings("unchecked")
@Before
public void setUp() throws Exception {
this.mockCtx = new JUnit4Mockery();
this.mockCtx.setThreadingPolicy(new Synchroniser());
this.workerFactory = this.mockCtx.mock(Callable.class);
this.workers.add(this.mockCtx.mock(Worker.class, "Worker1"));
this.workers.add(this.mockCtx.mock(Worker.class, "Worker2"));
this.eventEmitters.add(this.mockCtx.mock(WorkerEventEmitter.class, "WorkerEventEmitter1"));
this.eventEmitters.add(this.mockCtx.mock(WorkerEventEmitter.class, "WorkerEventEmitter2"));