### Question:
StudyPresentation extends PresentationModel<Study> { public List<OutcomeMeasure> getEndpoints() { List<OutcomeMeasure> endpoints = new ArrayList<OutcomeMeasure>(); endpoints.addAll(Study.extractVariables(getBean().getEndpoints())); return endpoints; } 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 testGetEndpoints() { Endpoint ep = new Endpoint("ep", Endpoint.convertVarType(Variable.Type.RATE)); d_study.getEndpoints().add(new StudyOutcomeMeasure<Endpoint>(ep)); AdverseEvent ade = new AdverseEvent("ade1", AdverseEvent.convertVarType(Variable.Type.RATE)); d_study.getAdverseEvents().add(new StudyOutcomeMeasure<AdverseEvent>(ade)); assertEquals(Collections.singletonList(ep), d_model.getEndpoints()); }