@Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey"));
     regionRepository.findById((java.lang.String) map.get("RegionPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey"));
     Region region = regionRepository.findById((java.lang.String) map.get("RegionPrimaryKey"));
     region.setRegionCode1(1);
     region.setRegionCodeChar2("N4c2U1xTjlAZvxluk8TQGpkEDKzeCC3F");
     region.setRegionDescription("cWDIp814dOg3fKPwebPLmG4Nng7Uru0gMQvobwhyKNUsmtR6Zr");
     region.setRegionFlag("PxAMO2pfV2XNxqhP5IB5OH0BBvJwkN3QgPvnuWPYUjv9GIxT9B");
     region.setRegionLatitude(2);
     region.setRegionLongitude(7);
     region.setRegionName("ERKUvfHA9rQpkSOcYI7obZlOi6z8dS1nNDj5F60kCyjWSH16Yb");
     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("pFupc1e01pvHk0ZWifxZR9Um9UMKldxg");
     country.setCapitalLatitude(7);
     country.setCapitalLongitude(8);
     country.setCountryCode1("CKK");
     country.setCountryCode2("gH9");
     country.setCountryFlag("GuYc2aupSQvVS5vAtqiZ6kTvukJ074NgjIMUhobob2RMPsaTnW");
     country.setCountryName("LzW0ScflbwrtS6mcyn6guSbNQtxE0lLVhHttSl0PB35hm8KG2J");
     country.setCurrencyCode("T0p");
     country.setCurrencyName("AVS5a8rGCPSPnlt1qakVUB3rOUQF1o6nEphLinc2rSjRmW0aFX");
     country.setCurrencySymbol("JsWBX42zy2dtIQA0KEe4Gm3U6oukBTOB");
     country.setIsoNumeric(4);
     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("WX3A3zkQXuTAkOTijHDiDCGuPJdkAMf9nTRjSolyb5G6C6nCpp");
     state.setStateCapitalLatitude(11);
     state.setStateCapitalLongitude(2);
     state.setStateCode(1);
     state.setStateCodeChar2("HT5r8Z5NZ0quFWFMddGDULfhHC3oZ5WL");
     state.setStateCodeChar3("ahVLWW0MKdzUAE4XbQ1zPHKaty6AOb4G");
     state.setStateDescription("Ngr21FHL8Wg0y3yxfNAFgOMZOuMKeeMNJogUAiA0HYlcfaa76f");
     state.setStateFlag("14ZaXQueKYAQYHwXfEnHiWy0F2mBg0cO3WdFZZ7ABM26mIXRdw");
     state.setStateName("wTXOLlA2T8JXKhcEfGhXhqiBmJpx7jZ102xZGTHJkqNgXkfcFg");
     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(3);
     region.setRegionCodeChar2("l7O3bcDzpvLgH6YW4B3dV8yHX5Ande5E");
     region.setRegionDescription("pLGfdNzRikelUdyCJBdNvSmSK4r6mDGEwubCFSjaNK95b34g2f");
     region.setRegionFlag("o69Ph5H3AtkfF4E4FY5mrL83d6gHWu4Hf02uNH1RyIutAMeIhh");
     region.setRegionLatitude(10);
     region.setRegionLongitude(8);
     region.setRegionName("sURdxBqocpdP1Z9B2rw8bug9y8xNI0xVoHxUgefUOiQ1aHOVdO");
     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());
   }
 }
 @Test
 public void test3findBystateId() {
   try {
     java.util.List<Region> listofstateId =
         regionRepository.findByStateId((java.lang.String) map.get("StatePrimaryKey"));
     if (listofstateId.size() == 0) {
       org.junit.Assert.fail("Query did not return any records.");
     }
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey"));
     regionRepository.delete(
         (java.lang.String) map.get("RegionPrimaryKey")); /* Deleting refrenced data */
     stateRepository.delete(
         (java.lang.String) map.get("StatePrimaryKey")); /* Deleting refrenced data */
     countryRepository.delete((java.lang.String) map.get("CountryPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }