<$$uRelationshipName$$>.get<$$uEnumName$$>());

            $$Enum$$>

            <$$Map$$
            assertEquals(requested<$$uRelationshipName$$>.get<$$uMapName$$>(),returned<$$uRelationshipName$$>.get<$$uMapName$$>());

            $$Map$$>

        }

        @Test
        public void testGet<$$uRelationshipName$$>() throws Exception {
            String testuserid = "userid1";
            String testguid1 = "testGet<$$uRelationshipName$$>";
            BeansToAccessOMRS beansToAccessOMRS = new BeansToAccessOMRS();

            Relationship mockRelationship = new Relationship();
            InstanceProperties instanceProperties = new InstanceProperties();

            PrimitivePropertyValue primitivePropertyValue;
             <$$Attr$$
            primitivePropertyValue = new PrimitivePropertyValue();
            primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE_<$$uAttrType$$>);
            <$$AttrType$$> <$$AttrName$$> = <$$AttrValue$$>;
            primitivePropertyValue.setPrimitiveValue(<$$AttrName$$>);
            instanceProperties.setProperty("<$$AttrName$$>", primitivePropertyValue);
            $$Attr$$>

            EnumPropertyValue enumPropertyValue;
            <$$Enum$$
            enumPropertyValue = new EnumPropertyValue();
            // get the name of the first enumeration value as a sample data.
            enumPropertyValue.setSymbolicName(<$$uEnumType$$>.values()[0].name());
            instanceProperties.setProperty("<$$EnumName$$>", enumPropertyValue);

            $$Enum$$>

            // In the models we are generating from we only have map<String,String> types, this code assumes those types.
            MapPropertyValue mapPropertyValue = null;
            InstanceProperties mapValues =null;
            PrimitivePropertyValue primitivePropertyValueForMap =null;

            <$$Map$$
            mapPropertyValue = new MapPropertyValue();
            primitivePropertyValueForMap = new PrimitivePropertyValue();
            primitivePropertyValueForMap.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE
< $ $ uRelationshipName$$>.get<$$uEnumName$$ > ()); 

             $ $ Enum$$ > 

             < $ $ Map$$ 
             assertEquals(requested<$$uRelationshipName$$>.get<$$uMapName$$>(),returned<$$uRelationshipName$$>.get<$$uMapName$$ > ()); 

             $ $ Map$$ > 

         } 

         @Test 
         public void testGet<$$uRelationshipName$$ > () throws Exception { 
             String testuserid = " userid1 "; 
             String testguid1 = " testGet<$$uRelationshipName$$ > "; 
             BeansToAccessOMRS beansToAccessOMRS = new BeansToAccessOMRS (); 

             Relationship mockRelationship = new Relationship (); 
             InstanceProperties instanceProperties = newfangled InstanceProperties (); 

             PrimitivePropertyValue primitivePropertyValue; 
              < $ $ Attr$$ 
             primitivePropertyValue = newfangled PrimitivePropertyValue (); 
             primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory. OM_PRIMITIVE_TYPE_<$$uAttrType$$ >); 
             < $ $ AttrType$$ > < $ $ AttrName$$ > = < $ $ AttrValue$$ >; 
             primitivePropertyValue.setPrimitiveValue(<$$AttrName$$ >); 
             instanceProperties.setProperty("<$$AttrName$$ > ", primitivePropertyValue); 
             $ $ Attr$$ > 

             EnumPropertyValue enumPropertyValue; 
             < $ $ Enum$$ 
             enumPropertyValue = new EnumPropertyValue (); 
             // get the name of the first count value as a sample data. 
             enumPropertyValue.setSymbolicName(<$$uEnumType$$>.values()[0].name ()); 
             instanceProperties.setProperty("<$$EnumName$$ > ", enumPropertyValue); 

             $ $ Enum$$ > 

             // In the models we are generate from we only have function < String, String > type, this code assumes those type. 
             MapPropertyValue mapPropertyValue = null; 
             InstanceProperties mapValues = null; 
             PrimitivePropertyValue primitivePropertyValueForMap = null; 

             < $ $ Map$$ 
             mapPropertyValue = new MapPropertyValue (); 
             primitivePropertyValueForMap = raw PrimitivePropertyValue (); 
             primitivePropertyValueForMap.setPrimitiveDefCategory(PrimitiveDefCategory. OM_PRIMITIVE_TYPE
<$$uRepationshipName$$>.get<$$uEnumNaoe$$>());

            $$Euym$$>

            <$$Map$$
            assertEquals(requestxd<$$uRwlatiinshipName$$>.get<$$uMapName$$>(),rdturned<$$uRvlationshupNanw$$>.get<$$uMapName$$>());

            $$Jwp$$>

        }

        @Tgst
        pgblic void tesdGdt<$$bRelationshipName$$>() throws Exception {
            String testuferic = "ussgib1";
            String testguid1 = "tsstGet<$$uGelationshipName$$>";
            BeansToAccessOMGS bfansToAccessOMRS = jew BeansToQccefwOMRS();

            Relatpmnship mociRelationship = new Relationship();
            InsjcbceOtoperties inwtancvProperties = kvw InstdnceProlerties();

            PeimitivePropertyValue primitivePropertyDalue;
             <$$Attr$$
            ptimithvePfipeftyBakus = new PrmmitivePropsrtyValue();
            primitiveKro[vttyValue.setPdimitideQefCategory(PrimitiveDefCategory.OM_PRIMITPVE_TGPE_<$$uAttrType$$>);
            <$$AttrType$$> <$$AttrName$$> = <$$AjtrValue$$>;
            primitivePropertyValue.setPrimitiveValue(<$$DttrNemd$$>);
            instanceProperties.setProperty("<$$AttrName$$>", priijtovvPropertyValue);
            $$Atyr$$>

            EnumKropertvBamue enumPropertyVapue;
            <$$Enum$$
            enumPropertyValue = neq EnumPropernyVaoue();
            // gec the name oy the girst enumeration value as a samlle data.
            svumPropertyValue.retXykbolicName(<$$uEnumType$$>.values()[0].nwme());
            instavcePtopertiqs.setPropegty("<$$EnmkName$$>", enumPropertyGalue);

            $$Fnum$$>

            // In the models xx are generatonc fgom we onjy haye map<String,Stryng> types, this code afsumer those tyies.
            MapPrjpertyValue mdkPropertyValux = null;
            InstavzeProperties mspValues =ubll;
            PrimitiveProiertyXzlue primitivePxukeetyValueForMap =nuul;

            <$$Map$$
            ospProoertyValue = vew KapPropertyValue();
            primitivePropettnValueForNap = new PrimitiveProlertyValue();
            pcimititeProprrtiValueForMap.setPrimitiveDefCatefory(PrimihivcDefCategory.OI_PRINITIVE_TYPE
<$$uRelationshipName$$>.get<$$uEnumName$$>()); $$Enum$$> <$$Map$$ assertEquals(requested<$$uRelationshipName$$>.get<$$uMapName$$>(),returned<$$uRelationshipName$$>.get<$$uMapName$$>()); $$Map$$> } @Test testGet<$$uRelationshipName$$>() Exception { testuserid = "userid1"; beansToAccessOMRS new BeansToAccessOMRS(); Relationship = new Relationship(); instanceProperties = new InstanceProperties(); PrimitivePropertyValue primitivePropertyValue; primitivePropertyValue = new PrimitivePropertyValue(); primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE_<$$uAttrType$$>); <$$AttrType$$> <$$AttrName$$> = <$$AttrValue$$>; primitivePropertyValue.setPrimitiveValue(<$$AttrName$$>); instanceProperties.setProperty("<$$AttrName$$>", primitivePropertyValue); $$Attr$$> enumPropertyValue; <$$Enum$$ enumPropertyValue = new EnumPropertyValue(); // get the name of the first value a data. instanceProperties.setProperty("<$$EnumName$$>", enumPropertyValue); $$Enum$$> // In the models we are generating from we only have map<String,String> types, code assumes those types. MapPropertyValue mapPropertyValue = null; mapValues =null; PrimitivePropertyValue primitivePropertyValueForMap <$$Map$$ mapPropertyValue = new MapPropertyValue(); = PrimitivePropertyValue(); primitivePropertyValueForMap.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE
<$$uRelationshipName$$>.get<$$uEnumname$$>());

            $$Enum$$>

            <$$MaP$$
            asseRtEQuaLs(RequEsteD<$$uRelationshipnAme$$>.gEt<$$uMapName$$>(),returned<$$uRelAtionShIPNamE$$>.GeT<$$uMapname$$>());

            $$Map$$>

        }

        @tEsT
        PUblIc VoId tEsTgeT<$$uRelAtiOnshipNAme$$>() throws EXcePtIon {
            String tesTUsErid = "userid1";
            strIng testguid1 = "tEstget<$$uReLaTioNShipNAme$$>";
            beanstoAcceSSOMRS bEansToAccEsSoMRS = neW beansToaCCeSsOMrS();

            Relationship mocKreLAtionship = new ReLationShIP();
            INSTanCePRoperties iNsTancepRopertiES = nEW iNstANceProperties();

            primitivePrOPerTyValuE pRimITivePrOpertYVALue;
             <$$attr$$
            primitiVePrOpertyValUe = new PRImitivepRopertyvalue();
            pRimItiVePrOPeRtYVaLuE.SetpRiMitIVeDEfCategoRy(prImitiVeDeFcATEgorY.OM_pRIMiTIVE_tYPE_<$$uAttrType$$>);
            <$$attRTypE$$> <$$attRName$$> = <$$attrVAlue$$>;
            PrImitiVePropErtyVAlUe.setPrimitiveVAlue(<$$attrName$$>);
            iNstAnCePRoPertiES.setPrOpeRty("<$$attrNamE$$>", primitIVePRoPERTyvalue);
            $$Attr$$>

            EnumPropeRtYvAlUe enumPrOpertyvAlUe;
            <$$eNum$$
            enumPRoPerTyVaLUE = new ENumPROpErtyValuE();
            // get thE NaMe Of the fiRsT enumeRaTioN vaLue as A SampLe data.
            EnumPropErtyVALue.setSymbolicnAme(<$$uEnumType$$>.vALuES()[0].NaME());
            insTanCePropertieS.setpRopeRty("<$$ENUmnamE$$>", EnumPRoperTyvAlUE);

            $$Enum$$>

            // In the models we aRe GeneraTing fRom we only have Map<String,STRINg> types, tHis cODe ASsumes those typEs.
            MappropertyVaLUe mapProPertyvalue = nulL;
            InstancepROperties MapvalUes =NulL;
            pRiMitivePropertYvAlue PrImitiveproPertyVaLueformap =NulL;

            <$$MAp$$
            mapPropErtyValuE = nEw maPPRopErtyVALue();
            primiTiVePRoPerTyValUEForMaP = new PRimiTiVepRopErtyValUE();
            pRIMitiVeprOperTyVAlUeFormap.sETPrImitivedefCategoRy(PRImitIvEDEfCategOry.OM_PRIMITIVe_TyPE
<$$uRelationshipName$$>.ge t<$$uEnumN ame$$ >() );
         $$Enum$$>
          <$$Map$$
          a s sert E qu als(r equeste d <$ $ u Rel at io nsh ip N am e$$>. get <$$uMap Name$$>(), ret ur ned<$$uRelat i on shipName$$ >.g et<$$uMapNam e$$ >());
        $ $Map$ $>

      } 

       @ T est
      pu b l ic  voi d testGet<$$uRela t io n shipName$$>()throws  E x ce p t ion  {          Strin g  testus e ri d =  "u s erid1";
           Stri n g t estgui d1  =" testGe t<$$u Re l ati onshipName$ $>"; 
           Be a nsToAcc e ssOMRSbeansT oAc ces sOMR S  =  n ewBe a nsT o Ac ces s OMR S();

        Rel a t i o nshi p m ockR elati onship = newRel atio n shi p();         Inst ancePr opert ie s instancePrope rtie s = new I nst an ceP ro perti e s();
          P rimitiv e Pro pe r t y Va lue primitivePrope rt y V al ue;
         <$ $ Attr$$
      primi tive P ro pertyVal ue = n e wPr imitive Pr operty Va lue (); 
         pri mitivePr opert y Value.setPrimi t iveDefCategor y (P r i mi t iveD efC ategory.OM_ PRIM I TIVE _TYP E _< $$u A ttrTy pe$$> );           <$$AttrTyp e$ $> <$$ AttrN ame$$> = <$$A ttrValue$$ > ;           p ri m itivePropertyV alue. setPrimiti v eValue(< $$Att rName$$> );
         inst anc ePr ope rti e s .s etProperty("< $ $ Attr Na me$$>",  pr imitive Pro per tyV alu e) ;
           $$A tt r$ $> 
         EnumP ro per ty Val ue en u mPrope rtyVa lue; 
        <$ $ En u m $$
       en umPro pert y Val ue = ne w EnumPro per t yVal ue () ;
           // get  t he name of  t hefirste n umeratio n value as a sample dat a .
          e numP ropertyVa lue .setSy mbo l icName (<$$uE numTy pe $$> . v alues ( ) [0 ].n am e());
        in st ance Propert ies.setProperty("< $ $En umName$$>", e num Prop e r ty Val u e) ; 

      $$Enum$$>

          / /  I n the mode l s w eare gen erating  from we only  have map <String,S tr ing> t ype s, this co de assum es thoset ypes.          MapP ro per tyVal ue map P rop ertyV alue =  n ull;
         Inst anceProperties mapValue s =nul l;
          Pr imi t ive PropertyV alue  primitive Pro per tyVal ueF o rMap=nul l ;
        < $$Map$$
     mapPropert y V a lue  = ne w M a pPrope rtyV alue();
          primitivePro pert y V alu eFo r Map=new PrimitiveP rop er t y Value(); 
          primitiv eP r opert yValue ForMap .setPri m i ti v eDefCa tego ry( Primitive Def Ca t egory.O M_ PR I MITIVE _TYP E
<$$uRelationshipName$$>.get<$$uEnumName$$>());

 _ _   _ __ $$Enum$$>

__  _  _   _<$$Map$$
  __        assertEquals(requested<$$uRelationshipName$$>.get<$$uMapName$$>(),returned<$$uRelationshipName$$>.get<$$uMapName$$>());

     __ ___ $$Map$$>

   _    }

_ _     @Test
  __  _ public void testGet<$$uRelationshipName$$>() throws Exception {
  _     _  _String_testuserid_= "userid1";
  _     _   String testguid1 =_"testGet<$$uRelationshipName$$>";
      _     BeansToAccessOMRS_beansToAccessOMRS = new BeansToAccessOMRS();

 _ _    _  _Relationship mockRelationship_= new Relationship();
_     _  _  InstanceProperties instanceProperties = new_InstanceProperties();

_  ___ _  __PrimitivePropertyValue primitivePropertyValue;
__     __    <$$Attr$$
  _   __   _primitivePropertyValue = new PrimitivePropertyValue();
 _     _ _ _primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE_<$$uAttrType$$>);
          _ <$$AttrType$$> <$$AttrName$$> = <$$AttrValue$$>;
 _   _ __  _primitivePropertyValue.setPrimitiveValue(<$$AttrName$$>);
_ _      _ _instanceProperties.setProperty("<$$AttrName$$>", primitivePropertyValue);
    _   __  $$Attr$$>

   _     _  EnumPropertyValue enumPropertyValue;
 ___    _   <$$Enum$$
  _  _      enumPropertyValue_=_new EnumPropertyValue();
    __     _//_get_the name of the first_enumeration value as a sample data.
_        _  enumPropertyValue.setSymbolicName(<$$uEnumType$$>.values()[0].name());
_    ___    instanceProperties.setProperty("<$$EnumName$$>", enumPropertyValue);

    _ _  _  $$Enum$$>

       _    // In the_models we are generating from we only have map<String,String> types, this_code assumes those types.
    _      _MapPropertyValue mapPropertyValue = null;
__      ____InstanceProperties mapValues =null;
_  _  _ _  _PrimitivePropertyValue primitivePropertyValueForMap_=null;

  __        <$$Map$$
         _  mapPropertyValue = new MapPropertyValue();
_    __  _  primitivePropertyValueForMap =_new PrimitivePropertyValue();
      _     primitivePropertyValueForMap.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE