### Question:
RandomEffectsMetaAnalysis extends AbstractMetaAnalysis implements PairWiseMetaAnalysis { public List<StudyArmsEntry> getStudyArms() { List<StudyArmsEntry> studyArms = new ArrayList<StudyArmsEntry>(); for (Study s : getIncludedStudies()) { studyArms.add(new StudyArmsEntry(s, getArm(s, getFirstAlternative()), getArm(s, getSecondAlternative()))); } return studyArms; } RandomEffectsMetaAnalysis(String name, OutcomeMeasure om,
			TreatmentDefinition baseline, TreatmentDefinition subject,
			List<StudyArmsEntry> studyArms, boolean corr); @Override TreatmentDefinition getFirstAlternative(); @Override TreatmentDefinition getSecondAlternative(); List<StudyArmsEntry> getStudyArms(); RandomEffectMetaAnalysisRelativeEffect<Measurement> getRelativeEffect(Class<? extends RelativeEffect<?>> type); boolean getIsCorrected(); void setIsCorrected(boolean iscorrected); @Override boolean deepEquals(Entity other); @Override MultivariateNormalSummary getRelativeEffectsSummary(); static final String PROPERTY_INCLUDED_STUDIES_COUNT; static final String PROPERTY_CORRECTED; }### Answer:
@Test public void testGetStudyArms() { List<StudyArmsEntry> entries = d_rema.getStudyArms(); assertEquals(d_studyList.size(), entries.size()); for (int i = 0; i < d_studyList.size(); ++i) { StudyArmsEntry studyArmsEntry = entries.get(i); assertEquals(d_studyList.get(i), studyArmsEntry.getStudy()); assertEquals(TreatmentDefinition.createTrivial(d_fluox), studyArmsEntry.getStudy().getTreatmentDefinition(studyArmsEntry.getBase())); assertEquals(TreatmentDefinition.createTrivial(d_sertr), studyArmsEntry.getStudy().getTreatmentDefinition(studyArmsEntry.getSubject())); assertTrue(d_studyList.get(i).getArms().contains(studyArmsEntry.getBase())); assertTrue(d_studyList.get(i).getArms().contains(studyArmsEntry.getSubject())); } }