DateValue implements CellValue { @Override public void setToCell(final TableCell cell) { cell.setDateValue(this.value); } DateValue(final Date value); static DateValue from(final Object o); @Override void setToCell(final TableCell cell); @Override boolean equals(final Object o); @Override final int hashCode(); @Override String toString();  }
@Test public final void testSetConstructor() { PowerMock.resetAll(); final TableCell cell = PowerMock.createMock(TableCell.class); cell.setDateValue(new Date(10)); PowerMock.replayAll(); final Date date = new Date(10); final CellValue dv = new DateValue(date); date.setTime(0); dv.setToCell(cell); PowerMock.verifyAll(); }