### Question:
SparseLocalDateDoubleTimeSeries implements ImmutableBean, Serializable, LocalDateDoubleTimeSeries { @Override public DoubleStream values() { return DoubleStream.of(values); } @ImmutableConstructor private  SparseLocalDateDoubleTimeSeries(LocalDate[] dates, double[] values); private  SparseLocalDateDoubleTimeSeries(LocalDate[] dates, double[] values, boolean trusted); @Override int size(); @Override boolean isEmpty(); @Override boolean containsDate(LocalDate date); @Override OptionalDouble get(LocalDate date); @Override LocalDate getLatestDate(); @Override double getLatestValue(); @Override LocalDateDoubleTimeSeries subSeries(LocalDate startInclusive, LocalDate endExclusive); @Override LocalDateDoubleTimeSeries headSeries(int numPoints); @Override LocalDateDoubleTimeSeries tailSeries(int numPoints); @Override Stream<LocalDateDoublePoint> stream(); @Override Stream<LocalDate> dates(); @Override DoubleStream values(); @Override void forEach(ObjDoubleConsumer<LocalDate> action); @Override LocalDateDoubleTimeSeries mapDates(Function<? super LocalDate, ? extends LocalDate> mapper); @Override LocalDateDoubleTimeSeries mapValues(DoubleUnaryOperator mapper); @Override LocalDateDoubleTimeSeries filter(ObjDoublePredicate<LocalDate> predicate); @Override LocalDateDoubleTimeSeriesBuilder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static SparseLocalDateDoubleTimeSeries.Meta meta(); @Override SparseLocalDateDoubleTimeSeries.Meta metaBean();  }### Answer:
@Test public void test_of_collectionCollection_dateCollectionNull() { Collection<Double> values = values(2d, 3d); assertThatIllegalArgumentException() .isThrownBy(() -> LocalDateDoubleTimeSeries.builder() .putAll((Collection<LocalDate>) null, values) .build()); }
@Test public void test_of_collectionCollection_dateCollectionWithNull() { Collection<LocalDate> dates = Arrays.asList(DATE_2011_01_01, null); Collection<Double> values = values(2d, 3d); assertThatIllegalArgumentException() .isThrownBy(() -> LocalDateDoubleTimeSeries.builder().putAll(dates, values).build()); }
@Test public void test_valueStream() { LocalDateDoubleTimeSeries base = LocalDateDoubleTimeSeries.builder().putAll(DATES_2010_12, VALUES_10_12).build(); assertThat(base.values()) .containsExactly(10d, 11d, 12d); }