@Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("CountryPrimaryKey"));
     Country country = countryRepository.findById((java.lang.String) map.get("CountryPrimaryKey"));
     country.setCapital("rkKyiyILBQhVCnS3H08ahZq28htc6r2r");
     country.setCountryCode2("JYI");
     country.setVersionId(1);
     country.setCurrencyCode("lbS");
     country.setIsoNumeric(901);
     country.setCountryFlag("QkiFaFE5PPvCymIO7lidMHgbUmOYfRQtdbsNPEkcQMd7GLjiRB");
     country.setCountryName("YhrZasSx8tAOpEduNzlaw7kdYpGFTUFJUK584HTc1MkWgNpsdj");
     country.setCapitalLatitude(5);
     country.setCurrencySymbol("9Z8lpIbdafdAiXY1nJZWMZamCdZpJpn8");
     country.setCapitalLongitude(8);
     country.setCurrencyName("fIJWUzvvaMJf7DOFmyvfo3HUDAdgZmogPgtW9Kqk5MnnWoHdLt");
     country.setCountryCode1("UNu");
     country.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     countryRepository.update(country);
   } 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());
   }
 }
 private void validateCountry(EntityTestCriteria contraints, Country country) throws Exception {
   if (contraints.getRuleType() == MIN_MAX) {
     country.isValid();
   } else if (contraints.getRuleType() == NOT_NULL) {
     country.isValid();
   } else if (contraints.getRuleType() == REGEX) {
     country.isValid();
   } else if (contraints.getRuleType() == UNIQUE) {
     countryRepository.save(country);
   }
 }
 @Test
 public void test6Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("CountryPrimaryKey"));
     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());
   }
 }
 @Test
 public void test1Save() {
   try {
     Country country = createCountry(true);
     country.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     country.isValid();
     countryRepository.save(country);
     map.put("CountryPrimaryKey", country._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());
   }
 }