### Question:
FixingSeriesCsvLoader { public static ImmutableMap<ObservableId, LocalDateDoubleTimeSeries> load(ResourceLocator... resources) { return load(Arrays.asList(resources)); } private  FixingSeriesCsvLoader(); static ImmutableMap<ObservableId, LocalDateDoubleTimeSeries> load(ResourceLocator... resources); static ImmutableMap<ObservableId, LocalDateDoubleTimeSeries> load(Collection<ResourceLocator> resources); static ImmutableMap<ObservableId, LocalDateDoubleTimeSeries> parse(Collection<CharSource> charSources);  }### Answer:
@Test public void test_single_series_single_file() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load( ImmutableList.of(FIXING_SERIES_1)); assertThat(ts).hasSize(1); assertThat(ts.containsKey(ID_USD_LIBOR_3M)).isTrue(); assertLibor3mSeries(ts.get(ID_USD_LIBOR_3M)); }
@Test public void test_multiple_series_single_file() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load( ImmutableList.of(FIXING_SERIES_1_AND_2)); assertLibor3m6mSeries(ts); }
@Test public void test_multiple_series_multiple_files() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load( FIXING_SERIES_1, FIXING_SERIES_2); assertLibor3m6mSeries(ts); }
@Test public void test_priceIndex1() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load(FIXING_SERIES_PRICE1); assertThat(ts).hasSize(1); assertThat(ts.containsKey(ID_GB_RPI)).isTrue(); assertPriceIndexSeries(ts.get(ID_GB_RPI)); }
@Test public void test_priceIndex2() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load(FIXING_SERIES_PRICE2); assertThat(ts).hasSize(1); assertThat(ts.containsKey(ID_GB_RPI)).isTrue(); assertPriceIndexSeries(ts.get(ID_GB_RPI)); }
@Test public void test_priceIndex_invalidDate() { assertThatIllegalArgumentException().isThrownBy(() -> FixingSeriesCsvLoader.load(FIXING_SERIES_PRICE_INVALID)); }
@Test public void test_single_series_multiple_files() { assertThatIllegalArgumentException() .isThrownBy(() -> FixingSeriesCsvLoader.load(FIXING_SERIES_1, FIXING_SERIES_1)) .withMessageStartingWith("Multiple entries with same key: "); }
@Test public void test_invalidDate() { assertThatIllegalArgumentException() .isThrownBy(() -> FixingSeriesCsvLoader.load(FIXING_SERIES_INVALID_DATE)) .withMessageStartingWith("Error processing resource as CSV file: "); }