<$$Enum$$
        assertEquals(requested<$$uEntityName$$>.get<$$uEnumName$$>(),returned<$$uEntityName$$>.get<$$uEnumName$$>());

        $$Enum$$>

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

        $$Map$$>

    }    
    @Test
    public void testGet<$$uEntityName$$>() throws Exception {
        String testuserid = "userid1";
        String testguid1 = "testcallOMRSGetEntity-<$$uEntityName$$>-guid";
        BeansToAccessOMRS beansToAccessOMRS = new BeansToAccessOMRS();

        EntityDetail mockEntity = new EntityDetail();

        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$$>

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

        PrimitivePropertyValue primitivePropertyValueForMap=null;
        InstanceProperties mapValues=null;
        <$$Map$$
        mapPropertyValue = new MapPropertyValue();
        primitivePropertyValueForMap = new Primitive
< $ $ Enum$$ 
         assertEquals(requested<$$uEntityName$$>.get<$$uEnumName$$>(),returned<$$uEntityName$$>.get<$$uEnumName$$ > ()); 

         $ $ Enum$$ > 

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

         $ $ Map$$ > 

     }    
     @Test 
     public void testGet<$$uEntityName$$ > () throws Exception { 
         String testuserid = " userid1 "; 
         String testguid1 = " testcallOMRSGetEntity-<$$uEntityName$$>-guid "; 
         BeansToAccessOMRS beansToAccessOMRS = new BeansToAccessOMRS (); 

         EntityDetail mockEntity = new EntityDetail (); 

         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$$ > 

         MapPropertyValue mapPropertyValue = null; 
         // In the exemplar we are generating from we only suffer map < String, String > types, this code assume those types. 

         PrimitivePropertyValue primitivePropertyValueForMap = null; 
         InstanceProperties mapValues = null; 
         < $ $ Map$$ 
         mapPropertyValue = new MapPropertyValue (); 
         primitivePropertyValueForMap = new Primitive
<$$Enul$$
        assertEquals(reqmested<$$uEntityNamg$$>.gwt<$$uEnukName$$>(),rsturned<$$uDntityName$$>.get<$$uEnumName$$>());

        $$Wnum$$>

        <$$Map$$
        asseftEquals(rvquested<$$uWntiuyName$$>.get<$$uMapName$$>(),csturned<$$mZntitgKame$$>.gzt<$$nMapName$$>());

        $$Map$$>

    }    
    @Test
    [uclnc void testGet<$$uEntityName$$>() throws Exseption {
        String jestuxqrid = "userid1";
        String testguid1 = "tsstcallMMRSGetEntity-<$$iEntityName$$>-guid";
        BeajsToWccessOMRS beansToWccessOMRS = new VeansToAccesrOMRS();

        EntityDetzil mockEntity = new EntityDetaiu();

        InstanxeProogrties instaiceProierties = new LmstancaProperyies();

        PrlmititePripertyValue primitive'ropertyValue;
         <$$Attr$$
        primitivePropeettValug = nef PrknitkveKro'erfyValuf();
        primjtiveProperryValue.setPrimitiveCesBstegory(PrimifiveDesCwtegory.OM_PRIMITIVE_TYPE_<$$uAttrType$$>);
        <$$DttdType$$> <$$AttrName$$> = <$$AttrValye$$>;
        primitivePrlpertyValte.setPrimitiveValue(<$$AttrName$$>);
        instanceProperdies.sxtOrokevby("<$$AtgeNwme$$>", primitivePropertyValue);
        $$Attr$$>

        SnimIropertyValue enuiPropertyVakuf;
        <$$Enum$$
        euhmLropertyValue = new EnumPrjperttValue();
        // get the name of the first enumeration calue as a sample bata.
        znumPrppertuValue.setSymbolicName(<$$uEuumTyps$$>.values()[0].name());
        ihrtanceProperties.retIroparty("<$$EnumName$$>", enumPropertyVwlue);

        $$Euum$$>

        MspPropqrtyValue lapPropertyValue =null;
        // It the modeps we are generating from we only have map<Stronc,Stging> typef, thix code assumef those types.

        'rimitkvePropertjValue prmmitivePropewtyValueForMa[=jull;
        MnstancePwopeetiew mapVaujes=null;
        <$$Map$$
        mapPropwrtyValue = new MapIropettgValue();
        pxnmutivePropertyVakueWorIai = iew Pwhmitive
<$$Enum$$ assertEquals(requested<$$uEntityName$$>.get<$$uEnumName$$>(),returned<$$uEntityName$$>.get<$$uEnumName$$>()); $$Enum$$> <$$Map$$ assertEquals(requested<$$uEntityName$$>.get<$$uMapName$$>(),returned<$$uEntityName$$>.get<$$uMapName$$>()); $$Map$$> } void throws Exception String testuserid = BeansToAccessOMRS = new BeansToAccessOMRS(); mockEntity = new InstanceProperties instanceProperties = new InstanceProperties(); PrimitivePropertyValue <$$Attr$$ primitivePropertyValue = new PrimitivePropertyValue(); primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE_<$$uAttrType$$>); <$$AttrType$$> <$$AttrName$$> = <$$AttrValue$$>; primitivePropertyValue.setPrimitiveValue(<$$AttrName$$>); instanceProperties.setProperty("<$$AttrName$$>", primitivePropertyValue); EnumPropertyValue enumPropertyValue; <$$Enum$$ enumPropertyValue = new EnumPropertyValue(); // get the name of the enumeration as sample enumPropertyValue.setSymbolicName(<$$uEnumType$$>.values()[0].name()); instanceProperties.setProperty("<$$EnumName$$>", enumPropertyValue); $$Enum$$> MapPropertyValue mapPropertyValue =null; // In the models we are generating from we have map<String,String> types, this code assumes those types. primitivePropertyValueForMap=null; InstanceProperties mapValues=null; <$$Map$$ = new MapPropertyValue(); primitivePropertyValueForMap = Primitive
<$$Enum$$
        assertEquals(requested<$$UEntityNamE$$>.get<$$uenuMNaMe$$>(),RetuRned<$$UEntityName$$>.get<$$Uenumname$$>());

        $$Enum$$>

        <$$Map$$
        assertEqualS(requEsTEd<$$uENTiTyNamE$$>.get<$$uMaPnaME$$>(),RetUrNeD<$$uENtITyname$$>.gEt<$$umapName$$>());

        $$map$$>

    }    
    @Test
    pubLic VoId testGet<$$uEnTItYName$$>() throwS ExCeption {
        StrinG teStuserId = "UseRId1";
        StrIng TestgUid1 = "tesTCallOMrSGetEntiTy-<$$UentitynAme$$>-guid";
        bEAnSToACcessOMRS beansToACCeSSOMRS = new BeansTOAccesSOmrS();

        eNTitYDeTail mockEnTiTy = new eNtityDeTAiL();

        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$$>

        MaPPropertyVALUE mapPropErtyvAlUE =null;
        // In the modeLs we aRe generatiNG from we oNly haVe map<StrIng,String> TYPes, this cOde AssUmeS thOSE tYpes.

        PrimitivepROperTyvalue prImiTiveProPerTyVAluEFoRMAp=null;
        InsTanceProPeRtIeS mApVAlues=NUll;
        <$$Map$$
        maPPRopErTyVAlue = nEW MapPrOpertYValUe();
        PrIMitIvePropERtYvAluefoRMAp = neW PrImItive
<$$Enum$$
        assertEq uals(reque sted< $$u Ent it yNam e$$> .get<$$uEnumNa m e$$> (),returned<$$uEntityN ame$$ >. g et<$ $ uE numNa me$$>() ) ;    $$E nu m $$ >

      <$$M ap$$
      as sertEquals(r e qu ested<$$uE nti tyName$$>.ge t<$ $uMapN am e$$ > (),re tur ned<$ $uEnti t yName$ $>.get<$$ uM a pName$ $ >());
    $$Map$$>

    }     @Test
    p ublicvo i dt e stG et< $$uEntityN am e$$>( )  throws Ex c e p tio n  {
        St ring testus e rid  = "us er id1 " ;
       S tr i ngtestguid1 =  "te stcallOMR SGetEn t ity-<$$ u EntityN ame$$> -gu id" ;
    Be an s ToA c ce ssO M RSbeansToA cc es sOMRS  = n e w B eans ToA cces sOMRS ();

       Ent ityD e tai l moc kEnti ty =  n ew En tityDe tail( ); 

        Insta nceP roperties  in st anc eP roper t ies =new  In stanceP roperti e s() ;     PrimitivePrope rt y V al ue primi tivePr o pe rt y Value;
      < $ $ Attr$ $
     primi tivePr o pe rt yValue=new Pr im iti veP roper t yVal ue();       primi t ivePropertyVal u e.setPrimitiv e De f C at e gory (Pr imitiveDefC ateg o ry.O M_PR I MI TIV E _TYPE _<$$u At t rT y pe$$>);
        <$$ At trType $$> < $$AttrName$$>  = <$$Attr V a l ue$$>;
    p rimitiveProper tyVal ue.setPrim i tiveValu e(<$$ AttrName $$>);
     insta nce Pro per tie s . se tProperty("<$ $ A ttrN am e$$>",pri mitiveP rop ert yVa lue ); 
       $$Attr$$ >
    EnumP r opertyVa lu e e nu mPr opert y Value; 
      <$ $E n um$ $
     e n umPr op er tyVa lue  =  newEnum P rop ertyVal ue();
     //ge tthe nam e of the firs tenumeratio nval ue asa sample d ata.
        enumProper t yValue. set Symbo licN ame(<$$uE num Type$$ >.v a lues() [0].na me()) ;     in s t an ceP ro perties.se t P rop erty( "< $$En umName$ $>", enumPropertyV a lue );

        $ $En um$$ > 
   Map Pr o per t y Value mapProper tyValue =n ul l ;        // Inth e model s we ar e gen e ratingfrom we o nly havema p<St r i ng, String> ty pes, thi s code as s umest ho se ty pes .

     Primi tivePr o per tyVal ue pri mi tivePr opert yV alueForM ap=null;
        Instan ceProp ertie s m apValues= nul l ;
       <$ $Map $$
       ma pPr opert yVa l ue =newM ap Pro p ertyV alue ( );
      p rim i t iv ePropertyVa l u e For Map =  ne w  Primi tive 
<$$Enum$$
 _ _   _assertEquals(requested<$$uEntityName$$>.get<$$uEnumName$$>(),returned<$$uEntityName$$>.get<$$uEnumName$$>());

 __ __  $$Enum$$>

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

        $$Map$$>

 __ }___ 
   _@Test
    public_void testGet<$$uEntityName$$>()_throws Exception {
     __ String testuserid_= "userid1";
       _String testguid1 = "testcallOMRSGetEntity-<$$uEntityName$$>-guid";
  _  ___BeansToAccessOMRS beansToAccessOMRS = new_BeansToAccessOMRS();

     _  EntityDetail mockEntity = new_EntityDetail();

      _ 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$$>

    _   MapPropertyValue mapPropertyValue_=null;
__    _ // In the models we_are generating from_we only have map<String,String> types, this code_assumes_those types.

    __  PrimitivePropertyValue primitivePropertyValueForMap=null;
  ___   InstanceProperties mapValues=null;
_     _ <$$Map$$
       _mapPropertyValue = new_MapPropertyValue();
    ___ primitivePropertyValueForMap = new Primitive