/**
  * @expectedException \InvalidArgumentException
  */
 public function testEnsuresHandlerExistsByName()
 {
     $builder = new HandlerStack();
     $builder->before('foo', function () {
     });
 }