### Question:
Epoch extends AbstractNamedEntity<Epoch> implements TypeWithNotes, TypeWithDuration { public void setDuration(Duration duration) { Duration oldValue = d_duration; d_duration = duration; firePropertyChange(PROPERTY_DURATION, oldValue, d_duration); } Epoch(String name, Duration duration); ObservableList<Note> getNotes(); @Override Set<? extends Entity> getDependencies(); void setDuration(Duration duration); Duration getDuration(); @Override boolean equals(Object obj); boolean deepEquals(Entity obj); @Override String toString(); Epoch rename(String newName); static final String PROPERTY_DURATION; }### Answer:
@Test public void testSetDuration() throws DatatypeConfigurationException { JUnitUtil.testSetter(d_null, Epoch.PROPERTY_DURATION, null, DatatypeFactory.newInstance().newDuration("P5DT3H")); }