I want to be able to test some code that adds pending intents to the Alarm Manager but while I can create my own mock context to return it from getSystemService() I can't create my own sub class of Alarm Manager due to it having a private constructor.
Would there be another (better?) way for me to be able to test that my code correctly is adding (or not) alarms based on my test pre conditions?