### Question:
Value { public final double getSum() { return sum; }  final double getValue(); final double getSum(); final long getCount(); final void add(final double value); final void addInterpolated(final double value); final boolean valueIsInterpolated(); final void remove(final double value);  }### Answer:
@Test public void testGetSum() throws Exception { Value victim = new Value(); Double[] testValues = new Double[]{1.0, 1.1, 2.0, -23.4, 0.0, 1.0, 2.1}; double sum = 0.0; for (Double value : testValues) { victim.add(value); sum += value; } assertEquals(sum,victim.getSum(), EPSILON); }