ExperimentConfiguration { public List<Pair<Contrast, Boolean>> getContrastAndAnnotationPairs() { List<Pair<Contrast, Boolean>> contrasts = new ArrayList<>(); NodeList arrayDesigns = xmlReader.getDocument().getElementsByTagName("array_design"); for (int i = 0; i < arrayDesigns.getLength(); i++) { Node currentArrayDesign = arrayDesigns.item(i); String arrayDesignAccession = currentArrayDesign.getFirstChild().getTextContent().trim(); parseContrastConfiguration( "analytics[" + (i + 1) + "]/contrasts/contrast/@id", arrayDesignAccession, contrasts); } if (arrayDesigns.getLength() == 0) { parseContrastConfiguration("analytics/contrasts/contrast/@id", null, contrasts); } return contrasts; } ExperimentConfiguration(XmlReader xmlReader); List<Pair<Contrast, Boolean>> getContrastAndAnnotationPairs(); List<Contrast> getContrasts(); List<AssayGroup> getAssayGroups(); ExperimentType getExperimentType();  }
@Test public void testOpenTargetsContrasts() { assertThat( testConfiguration(MICROARRAY_CONFIGURATION_XML).getContrastAndAnnotationPairs().stream() .filter(Pair::getRight) .collect(toList()), hasSize(1)); }