How do you test push notifications? Including behavior when the app is in the background/terminated/foreground.

TechnicalMobile TesterQA EngineerSoftware Tester