public function test_that_has_handlers_returns_true_with_handlers_added_in_memory()
 {
     $dispatcher = new ServiceAwareEventDispatcher($this->container);
     $type = ClassName::underscore(UserRegisteredEvent::class);
     $dispatcher->addHandler($type, function () {
     });
     $this->assertTrue($dispatcher->hasHandlers($type));
 }