@Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey"));
     Region region = regionRepository.findById((java.lang.String) map.get("RegionPrimaryKey"));
     region.setRegionCode1(0);
     region.setRegionCodeChar2("PDiWrotR1hMufuKQ3ValuVNNgcrGOeCa");
     region.setRegionDescription("15aVZIdLA09UXT3nKuH7oWaPCSkXWcYa5Lt9ZgQxYyuQ6PGODf");
     region.setRegionFlag("7GAiMUE0lpW9LW0KSUUc2hNBfs2DEpTnBJGc5ajIkvs87PsRzZ");
     region.setRegionLatitude(3);
     region.setRegionLongitude(10);
     region.setRegionName("tzgWZNWRXuBubGurugD6d8fmoV9y4SahwSgY72H2ARrEHEYMwS");
     region.setVersionId(1);
     region.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     regionRepository.update(region);
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("cSNqLCWNde1Opv6cY1qG7Y3E1IWVUCmG");
     country.setCapitalLatitude(9);
     country.setCapitalLongitude(2);
     country.setCountryCode1("pOj");
     country.setCountryCode2("0le");
     country.setCountryFlag("rb4iNFmDh8gqaLOydgscCUlkqCmEOPa14ujeu2AZLMiTuow7wb");
     country.setCountryName("lwZFkfQ4W2ls00581hTUcf1m9EZqmnRgg2IuaWGsnSW4aCj9Fo");
     country.setCurrencyCode("gfk");
     country.setCurrencyName("HHNqFANATERwrI9hQUBQwMQrVkxkJymDg5D8I9MwfpJDknHkZ2");
     country.setCurrencySymbol("R2HCOjrkel1UBziW9X5jjoNlSsbq8z7t");
     country.setIsoNumeric(0);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     state.setStateCapital("k0iFoQpliMCUh6X4B19sBeQNNNNlqZE5iZSsV6Rr5Z3LwXn1Z0");
     state.setStateCapitalLatitude(7);
     state.setStateCapitalLongitude(1);
     state.setStateCode(1);
     state.setStateCodeChar2("gK5sHyJJx6sg9cItt2cmc91dFEEC23gp");
     state.setStateCodeChar3("vT9EF2GXPqUykPiWlnkrQCgHMGeermIu");
     state.setStateDescription("iS3RXNVZHpfIPOgJFic35GJ5rQUkruyCKkwvvnmf1yC9ItlM7Z");
     state.setStateFlag("ws09AzdNYCplj58WrzyyZAT4ZxI3OtiBrnSXNw4pIMUzlpOKAM");
     state.setStateName("qClaEaOhZmPblhAxMyZ2PN13nP2ZtxyuoxMDclYw0tn2E9JbvQ");
     State StateTest = stateRepository.save(state);
     map.put("StatePrimaryKey", state._getPrimarykey());
     Region region = new Region();
     region.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     region.setRegionCode1(0);
     region.setRegionCodeChar2("zNhOYWX0ebFxpkNApaGv8ewYuhis6aUH");
     region.setRegionDescription("YuD7Dvra1Un7T8AntaHGkpGApeKDsDph23S4GZLO51zIYzkGXp");
     region.setRegionFlag("VwXRhWZE4eHTHv5K2OAEUvg7yXl4bRJsS4hZrCox8O2mspzj6g");
     region.setRegionLatitude(1);
     region.setRegionLongitude(7);
     region.setRegionName("t5rbGRdmH7rI3xJ3XYAm3CNZP1VEEoMMuNmaROyltO5EDgLlcD");
     region.setStateId((java.lang.String) StateTest._getPrimarykey());
     region.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     region.setEntityValidator(entityValidator);
     region.isValid();
     regionRepository.save(region);
     map.put("RegionPrimaryKey", region._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }