Dictionary extends Metadata.Concept { public static List<Concept> getConcepts(String... identifiers) { List<Concept> concepts = new ArrayList<Concept>(); for (String identifier : identifiers) { concepts.add(getConcept(identifier)); } return concepts; }  static Concept getConcept(String identifier); static List<Concept> getConcepts(String... identifiers);  }
@Test public void getConcepts_shouldFetchByMappingOrUuid() { Concept cd4 = Context.getConceptService().getConceptByUuid(Dictionary.CD4_COUNT); Concept cd4pc = Context.getConceptService().getConceptByUuid(Dictionary.CD4_PERCENT); Assert.assertThat(Dictionary.getConcepts(Dictionary.CD4_COUNT, Dictionary.CD4_PERCENT), contains(cd4, cd4pc)); }
@Test(expected = MissingMetadataException.class) public void getConcepts_shouldThrowExceptionForNonExistent() { Dictionary.getConcepts(Dictionary.CD4_COUNT, "PIH:XXXXXXXXXXXXXXX"); }