### Question:
StudyPresentation extends PresentationModel<Study> { public boolean isStudyFinished() { Object status = getBean().getCharacteristic(BasicStudyCharacteristic.STATUS); if (status != null) { return status.equals(BasicStudyCharacteristic.Status.COMPLETED); } return false; } StudyPresentation(Study s, PresentationModelFactory pmf); StudyCharacteristicHolder getCharacteristicModel(Characteristic c); boolean isStudyFinished(); int getArmCount(); List<BasicArmPresentation> getArms(); int getPopulationCharacteristicCount(); List<? extends Variable> getPopulationCharacteristics(); LabeledPresentation getCharacteristicModel(BasicStudyCharacteristic c); List<OutcomeMeasure> getEndpoints(); List<OutcomeMeasure> getAdverseEvents(); PopulationCharTableModel getPopulationCharTableModel(); TableModel getEndpointTableModel(); TableModel getAdverseEventTableModel();  }### Answer:
@Test public void testIsStudyCompleted() { d_study.setCharacteristic(BasicStudyCharacteristic.STATUS, BasicStudyCharacteristic.Status.COMPLETED); assertEquals(true, d_model.isStudyFinished()); d_study.setCharacteristic(BasicStudyCharacteristic.STATUS, BasicStudyCharacteristic.Status.ACTIVE); assertEquals(false, d_model.isStudyFinished()); }