private void validateThirdEn(EntityTestCriteria contraints, ThirdEn thirden) throws Exception {
   if (contraints.getRuleType() == MIN_MAX) {
     thirden.isValid();
   } else if (contraints.getRuleType() == NOT_NULL) {
     thirden.isValid();
   } else if (contraints.getRuleType() == REGEX) {
     thirden.isValid();
   } else if (contraints.getRuleType() == UNIQUE) {
     thirdenRepository.save(thirden);
   }
 }
 @Test
 public void test1Save() {
   try {
     ThirdEn thirden = createThirdEn(true);
     thirden.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     thirden.isValid();
     thirdenRepository.save(thirden);
     map.put("ThirdEnPrimaryKey", thirden._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());
   }
 }