ApplicationProperties { public static String getBaselineReferenceExperimentAccession(Species species) { return REFERENCE_EXPERIMENTS.get(species.getReferenceName()); } protected  ApplicationProperties(); static String getBaselineReferenceExperimentAccession(Species species);  }
@Test public void getBaselineReferenceExperimentAccession() { SpeciesProperties homoSapiensProperties = SpeciesProperties.create("Homo_sapiens", "ORGANISM_PART", "animals", ImmutableList.of()); Species species = new Species("Homo sapiens", homoSapiensProperties); assertThat(ApplicationProperties.getBaselineReferenceExperimentAccession(species), startsWith("E-")); }
@Test public void getUnknownSpeciesBaselineReferenceExperimentAccession() { Species unknownSpecies = new Species("foobar", SpeciesProperties.UNKNOWN); assertThat(unknownSpecies.isUnknown(), is(true)); assertThat(ApplicationProperties.getBaselineReferenceExperimentAccession(unknownSpecies), is(nullValue())); }