@Test
public void updateNotificationWithNewMapDownload() throws NoSuchFieldException, IllegalAccessException {

    DownloadProgressNotification downloadProgressNotification = new DownloadProgressNotification(context);
    String mapName = UUID.randomUUID().toString();
    String mapBoxAccessToken = "sample_access_token";
    int requestCode = 89238087;
    downloadProgressNotification.createInitialNotification(mapName, mapBoxAccessToken, requestCode, true);
    assertNotificationBuilder(downloadProgressNotification.notificationBuilder, mapName);
    String newMapName = "notification channel";
    downloadProgressNotification.updateNotificationWithNewMapDownload(newMapName, requestCode);
    assertNotificationBuilder(downloadProgressNotification.notificationBuilder, newMapName);
    Intent stopDownloadIntent = new Intent(context, MapboxOfflineDownloaderService.class);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_SERVICE_ACTION, MapboxOfflineDownloaderService.SERVICE_ACTION.STOP_CURRENT_DOWNLOAD);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_MAP_UNIQUE_NAME, newMapName);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_MAPBOX_ACCESS_TOKEN, mapBoxAccessToken);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_DELETE_TASK_TYPE, MapBoxOfflineQueueTask.TASK_TYPE_DOWNLOAD);
    assertEquals(1, downloadProgressNotification.notificationBuilder.mActions.size());
    compareIntent(stopDownloadIntent, getIntent(downloadProgressNotification.notificationBuilder.mActions.get(0).getActionIntent()));
}