As the question indeed doesn't seem very inspiring (it's rather QA testing than an actual task) I don't feel like exploring it to the full depth.
The posted link shows all necessary technique to program artificial events and to dispatch / fire them onto different object.