### Question:
QueryResultDataPoint { public void setValue(double value) { this.value = value; } QueryResultDataPoint();  QueryResultDataPoint(long timestamp, double value); long getTimestamp(); void setTimestamp(long timestamp); double getValue(); void setValue(double value); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testSetValue() throws Exception { QueryResultDataPoint subject = new QueryResultDataPoint(); Assert.assertEquals("Value of uninitialized QueryResultDataPoint should be zero.", subject.getValue(), 0.0, EPSILON); subject.setValue(initialValue); Assert.assertEquals("Value of initialized QueryResultDataPoint should match given value.", subject.getValue(), initialValue, EPSILON); }