@Test(expected = IllegalArgumentException.class)
public void testGetPendingIntentForInvalidType() {

    // when pendingIntent type is invalid
    PendingIntentFactory.getPendingIntent(application,
            9, PendingIntent.FLAG_UPDATE_CURRENT);
}