Sending test events to apps

I guess i didnt convey my thoughts clear enough. I didnt mean my code, i understand how to test my own code, i understand that i can fake the events easily, no need to even fake the events, i can just call the functions manually as i please. What i want to test is if i even set up the connection/integration correctly, do i even receive any events in the first place.