private Obs getObsGroup() {
    ConceptDatatype datatype = new ConceptDatatype();
    datatype.setUuid(ConceptDatatype.CODED_UUID);
    datatype.setHl7Abbreviation(ConceptDatatype.CODED);

    Concept concept = new Concept(1);
    concept.setDatatype(datatype);
    concept.addName(new ConceptName("MedSet", Locale.ENGLISH));

    ConceptSource source = new ConceptSource();
    source.setName("LOCAL");

    ConceptMap map = new ConceptMap();
    map.setSourceCode("100");
    map.setSource(source);

    concept.addConceptMapping(map);

    Date dateCreated = new Date(213231421890234L);

    Obs obs = new Obs(1);
    obs.setConcept(concept);
    obs.setDateCreated(dateCreated);

    return obs;
  }
 private Concept setupConcept(ConceptService mockConceptService, String name, String mappingCode) {
   Concept concept = new Concept();
   concept.addName(new ConceptName(name, Locale.ENGLISH));
   concept.addConceptMapping(
       new ConceptMap(new ConceptReferenceTerm(emrConceptSource, mappingCode, null), sameAs));
   when(mockConceptService.getConceptByMapping(mappingCode, emrConceptSource.getName()))
       .thenReturn(concept);
   return concept;
 }