### Question:
DurationPresentation extends AbstractObservable { @Override public String toString() { return getLabel(); } DurationPresentation(T bean); static Data parseDuration(Duration duration, DateUnits prevUnits); DateUnits getUnits(); void setUnits(DateUnits units); int getQuantity(); void setQuantity(int quantity); boolean getDefined(); void setDefined(boolean defined); static Duration generateDuration(String duration); String getLabel(); @Override String toString(); static final String PROPERTY_DEFINED; static final String PROPERTY_DURATION_QUANTITY; static final String PROPERTY_DURATION_UNITS; static final String PROPERTY_LABEL; }### Answer:
@Test public void testToString() { assertEquals("6 Weeks", d_pm1.getLabel()); assertEquals("Undefined", d_pm2.getLabel()); assertEquals("3 Days", d_pm3.getLabel()); }