MicroarrayExperiment extends DifferentialExperiment { @Override public ExperimentInfo buildExperimentInfo() { ExperimentInfo experimentInfo = super.buildExperimentInfo(); experimentInfo.setArrayDesigns(getArrayDesignAccessions()); experimentInfo.setArrayDesignNames(getArrayDesignNames()); return experimentInfo; } MicroarrayExperiment(ExperimentType type, String accession, Date lastUpdate,
                                List<Pair<Contrast, Boolean>> contrasts,
                                String description, Species species,
                                ExperimentDesign experimentDesign,
                                Set<String> pubMedIds,
                                Set<String> dois,
                                List<ArrayDesign> arrayDesigns); List<String> getArrayDesignAccessions(); List<String> getArrayDesignNames(); @Override ExperimentInfo buildExperimentInfo();  }
@Test public void buildExperimentInfo() { assertThat( subject.buildExperimentInfo().getArrayDesignNames(), containsInAnyOrder(ARRAY_DESIGN_NAMES.toArray())); assertThat( subject.buildExperimentInfo().getArrayDesigns(), containsInAnyOrder(ARRAY_DESIGN_ACCESSIONS.toArray())); }