info.setDataSource(dataSource);
info.setObservationTime(s_provider2ObservationTime.get(dataProvider));
ExternalId ticker = ExternalSchemes.bloombergTickerSecurityId("ticker" + i);
ExternalId buid = ExternalSchemes.bloombergBuidSecurityId("buid" + i);
final ExternalIdBundleWithDates bundleWithDates = ExternalIdBundleWithDates.of(ExternalIdWithDates.of(ticker),
ExternalIdWithDates.of(buid));
info.setExternalIdBundle(bundleWithDates);
HistoricalTimeSeriesInfoDocument added = _htsMaster.add(new HistoricalTimeSeriesInfoDocument(info));
assertNotNull(added);
assertNotNull(added.getUniqueId());
Map<ExternalIdBundle, LocalDateDoubleTimeSeries> resultMap = _historicalTimeSeriesProvider.getHistoricalTimeSeries(
Collections.singleton(bundleWithDates.toBundle()), BloombergConstants.BLOOMBERG_DATA_SOURCE_NAME, dataProvider, dataField, LocalDateRange.of(start, end, true));
LocalDateDoubleTimeSeries timeSeries = resultMap.get(bundleWithDates.toBundle());
UniqueId tsUid = _htsMaster.updateTimeSeriesDataPoints(added.getInfo().getTimeSeriesObjectId(), timeSeries);
HistoricalTimeSeries hts = _htsMaster.getTimeSeries(tsUid);
assertNotNull(hts);
assertEquals(timeSeries, hts.getTimeSeries());