Use the Handler Tester utility to generate test messages.
See Understanding the Handler Tester Utility