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

    DownloadProgressNotification downloadProgressNotification = new DownloadProgressNotification(context);
    String mapName = UUID.randomUUID().toString();
    String mapBoxAccessToken = "sample_access_token";
    int requestCode = 89230923;
    downloadProgressNotification.createInitialNotification(mapName, mapBoxAccessToken, requestCode, true);
    NotificationCompat.Builder builder = downloadProgressNotification.notificationBuilder;
    assertNotificationBuilder(builder, mapName);
    // Check the action contents
    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, mapName);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_MAPBOX_ACCESS_TOKEN, mapBoxAccessToken);
    stopDownloadIntent.putExtra(Constants.PARCELABLE_KEY_DELETE_TASK_TYPE, MapBoxOfflineQueueTask.TASK_TYPE_DOWNLOAD);
    NotificationCompat.Action actualAction = builder.mActions.get(0);
    compareIntent(stopDownloadIntent, getIntent(actualAction.getActionIntent()));
}