### Question:
WhenTaken extends AbstractEntity implements Entity, Comparable<WhenTaken>, TypeWithDuration { public void setEpoch(Epoch epoch) { checkCommited("Epoch"); Epoch oldValue = d_epoch; d_epoch = epoch; firePropertyChange(PROPERTY_EPOCH, oldValue, d_epoch); } WhenTaken(Duration offset, RelativeTo relativeTo, Epoch epoch); Duration getOffset(); void setOffset(Duration duration); RelativeTo getRelativeTo(); void setRelativeTo(RelativeTo relativeTo); Epoch getEpoch(); void setEpoch(Epoch epoch); Duration getDuration(); void setDuration(Duration duration); Set<? extends Entity> getDependencies(); @Override boolean equals(Object obj); @Override String toString(); @Override int compareTo(WhenTaken o); @Override int hashCode(); @Override WhenTaken clone(); void commit(); boolean isCommitted(); static final String PROPERTY_EPOCH; static final String PROPERTY_RELATIVE_TO; static final String PROPERTY_OFFSET; }### Answer:
@Test public void testSetEpoch() { JUnitUtil.testSetter(d_wt, WhenTaken.PROPERTY_EPOCH, d_epoch1, d_epoch2); }