### Question:
IndicationPresentation extends PresentationModel<Indication> implements LabeledPresentation { @Override public AbstractValueModel getLabelModel() { return new LabelModel(); } IndicationPresentation(final Indication indication, ObservableList<Study> sortedSetModel); StudyListPresentation getStudyListPresentation(); @Override AbstractValueModel getLabelModel();  }### Answer:
@Test public void testCodeFireLabelChanged() { Indication i = new Indication(5L, "Some indication"); IndicationPresentation p = new IndicationPresentation(i, new ArrayListModel<Study>()); AbstractValueModel model = p.getLabelModel(); PropertyChangeListener x = JUnitUtil.mockListener(model, "value", "5 Some indication", "6 Some indication"); model.addPropertyChangeListener(x); i.setCode(6L); verify(x); }
@Test public void testNameFireLabelChanged() { Indication i = new Indication(5L, "Some indication"); Domain d = new DomainImpl(); IndicationPresentation p = new IndicationPresentation(i, d.getStudies()); AbstractValueModel model = p.getLabelModel(); PropertyChangeListener x = JUnitUtil.mockListener(model, "value", "5 Some indication", "5 Other indication"); model.addPropertyChangeListener(x); i.setName("Other indication"); verify(x); }