public function it_determines_the_event_name_from_message_name_call_if_event_has_one()
{
$onEventStrategy = new OnEventStrategy();
$customEvent = new CustomMessageWithName("I am an event with a messageName() method");
$closure = function ($event) {
return $this->determineEventName($event);
};
$determineEventName = $closure->bindTo($onEventStrategy, $onEventStrategy);
$this->assertSame('CustomMessageWithSomeOtherName', $determineEventName($customEvent));
}