### Question:
StudyPresentation extends PresentationModel<Study> { public int getArmCount() { return getBean().getArms().size(); } 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 testGetArmCount() { assertEquals(d_study.getArms().size(), d_model.getArmCount()); d_study.createAndAddArm("X", 0, new Drug("X", "Y"), null); assertEquals(d_study.getArms().size(), d_model.getArmCount()); }