@Test
public void testGetPendingIntentWhenInstanceCancel() {

    // when pendingIntent already exists in system and then canceled (update + new)
    PendingIntent actual = PendingIntentFactory.getPendingIntent(application,
            PendingIntentFactory.PENDING_INTENT_GEOFENCE, PendingIntent.FLAG_UPDATE_CURRENT);
    actual.cancel();
    PendingIntent actual1 = PendingIntentFactory.getPendingIntent(application,
            PendingIntentFactory.PENDING_INTENT_GEOFENCE, PendingIntent.FLAG_NO_CREATE);
    assertNotSame(actual, actual1);
    assertNull(actual1);
}