### Question:
LocalDateDoubleTimeSeriesBuilder { public LocalDateDoubleTimeSeriesBuilder putAll(Collection<LocalDate> dates, Collection<Double> values) { ArgChecker.noNulls(dates, "dates"); ArgChecker.noNulls(values, "values"); ArgChecker.isTrue(dates.size() == values.size(), "Arrays are of different sizes - dates: {}, values: {}", dates.size(), values.size()); Iterator<LocalDate> itDate = dates.iterator(); Iterator<Double> itValue = values.iterator(); for (int i = 0; i < dates.size(); i++) { put(itDate.next(), itValue.next()); } return this; } LocalDateDoubleTimeSeriesBuilder();   LocalDateDoubleTimeSeriesBuilder(LocalDate[] dates, double[] values);   LocalDateDoubleTimeSeriesBuilder(Stream<LocalDateDoublePoint> points); OptionalDouble get(LocalDate date); LocalDateDoubleTimeSeriesBuilder put(LocalDate date, double value); LocalDateDoubleTimeSeriesBuilder put(LocalDateDoublePoint point); LocalDateDoubleTimeSeriesBuilder merge(LocalDate date, double value, DoubleBinaryOperator operator); LocalDateDoubleTimeSeriesBuilder merge(LocalDateDoublePoint point, DoubleBinaryOperator operator); LocalDateDoubleTimeSeriesBuilder putAll(Collection<LocalDate> dates, Collection<Double> values); LocalDateDoubleTimeSeriesBuilder putAll(Collection<LocalDate> dates, double[] values); LocalDateDoubleTimeSeriesBuilder putAll(Stream<LocalDateDoublePoint> points); LocalDateDoubleTimeSeriesBuilder putAll(List<LocalDateDoublePoint> points); LocalDateDoubleTimeSeriesBuilder putAll(LocalDateDoubleTimeSeriesBuilder other); LocalDateDoubleTimeSeriesBuilder putAll(Map<LocalDate, Double> map); LocalDateDoubleTimeSeries build();  }### Answer:
@Test public void test_putAll_collectionsMismatch() { LocalDateDoubleTimeSeriesBuilder test = LocalDateDoubleTimeSeries.builder(); assertThatIllegalArgumentException() .isThrownBy(() -> test.putAll(Arrays.asList(date(2014, 1, 1)), Doubles.asList(2d, 3d))); }