public function testAddMultipleWorkers()
 {
     $workerA = $this->getMockWorker('foo');
     $workerB = $this->getMockWorker('baz');
     $bag = new WorkerBag();
     $bag->addWorkers(array($workerA, $workerB));
     $this->assertNotNull($bag->get('foo'));
     $this->assertNotNull($bag->get('baz'));
 }
 /**
  * @param string $workerName
  *
  * @return \KnpU\ActivityRunner\Worker\WorkerInterface
  */
 private function getWorker($workerName)
 {
     return $this->workerBag->get($workerName);
 }