MicroarrayExperiment extends DifferentialExperiment { public List<String> getArrayDesignAccessions() { return arrayDesigns.stream().map(a -> a.accession()).collect(Collectors.toList()); } 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 testGetArrayDesignAccessions() { assertThat(subject.getArrayDesignAccessions(), containsInAnyOrder(ARRAY_DESIGN_ACCESSIONS.toArray())); }