### Question:
QueryResultDataPoint { public long getTimestamp() { return timestamp; } 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 testGetTimestamp() throws Exception { QueryResultDataPoint subject = new QueryResultDataPoint(); Assert.assertEquals("Timestamp of uninitialized QueryResultDataPoint should be zero.", subject.getTimestamp(), 0); QueryResultDataPoint initializedSubject = new QueryResultDataPoint(initialTime, initialValue); Assert.assertEquals("Timestamp of initialized QueryResultDataPoint should match given value.", initializedSubject.getTimestamp(), initialTime); }