ZeroValueDoubleTimeSeriesFilter extends TimeSeriesFilter { public void setZero(final double zero) { ArgumentChecker.notNegative(zero, "zero"); _zero = zero; } ZeroValueDoubleTimeSeriesFilter();  ZeroValueDoubleTimeSeriesFilter(final double zero); void setZero(final double zero); @Override FilteredTimeSeries evaluate(final LocalDateDoubleTimeSeries ts);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testSetNegativeZero() { SMALL_ZERO_FILTER.setZero(-1e-12); }