Then we trigger our event handler with the mock event, and verify whether the stub function was called with the right properties.