### Question:
RateMeasurementPresentation extends PresentationModel<RateMeasurement> implements LabeledPresentation { public AbstractValueModel getLabelModel() { return new LabelModel(); } RateMeasurementPresentation(RateMeasurement bean); AbstractValueModel getLabelModel(); @Override String toString();  }### Answer:
@Test public void testFireLabelRateChanged() { AbstractValueModel lm = d_presentation.getLabelModel(); PropertyChangeListener l = JUnitUtil.mockListener( lm, "value", "67/101", "68/101"); lm.addPropertyChangeListener(l); d_measurement.setRate(68); verify(l); }
@Test public void testFireLabelSizeChanged() { AbstractValueModel lm = d_presentation.getLabelModel(); PropertyChangeListener l = JUnitUtil.mockListener( lm, "value", "67/101", "67/102"); lm.addPropertyChangeListener(l); d_measurement.setSampleSize(102); verify(l); }
@Test public void testGetLabel() { assertEquals("67/101", d_presentation.getLabelModel().getValue()); }