@Test
 public void test1Save() {
   try {
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("SplS2CsG7url3YwVi7EiObmvJzRRpKb3CvfcR3jGNV5B3UFK00");
     useraccessdomain.setDomainHelp("Jds4yTIBiMkNWoOTtrBBRvzHUaQJF5HdkeAMJ9j0bDAZX6q2G8");
     useraccessdomain.setDomainIcon("1CDbOGOlAvjXdQKKsXO9yA3bJC0Q2YRy7a4tXAuNtVUWl5823Y");
     useraccessdomain.setDomainName("rOBzO6X203DbEmpgxT6PUvoIkdTEC9Ws9Foiz39kNdKe3A0lZz");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     useraccessdomain.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     useraccessdomain.setEntityValidator(entityValidator);
     useraccessdomain.isValid();
     useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._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 test1Save() {
   try {
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("KBqyXqN9vA7jkwNfXBUIHufPNQBBcBYMl6k9CXXIpIEuduEDlS");
     useraccessdomain.setDomainHelp("XdjfsJIcPHhKmzt26Vm14mOWjP16ppJCgKaUWHwqH8Qv5dLRSG");
     useraccessdomain.setDomainIcon("8kZIOD4w8S5agSoosuDXON7hgj3dMbkzSGbZqNS7PhHBEwY36u");
     useraccessdomain.setDomainName("9wNkrrB4RSF6u4tNC489uPjg7UYAeviFnxqPPtFtqeFE18nEOH");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
     UserAccessLevel useraccesslevel = new UserAccessLevel();
     useraccesslevel.setLevelDescription("RO0kpPYvWvUBhtmXGQD30TegZCYpsyEXhJoOULObuvOnFhlsW3");
     useraccesslevel.setLevelHelp("y5lfxTmezxUVqVzE9DA5I5HhJBmoMlc8Y5k4qNXjEYUpD7TcJX");
     useraccesslevel.setLevelIcon("zkxo1gyVjR7J7QhgtekZhguk4FYIKrz5PNxTGgNqkLTkzbCn4C");
     useraccesslevel.setLevelName("qoc0AMfJpzrlmUL1se1PxT0kjlVPm9ZHq5joQBQqf4FOnIeMvh");
     useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
     UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
     map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
     User user = new User();
     user.setAllowMultipleLogin(0);
     user.setChangePasswordNextLogin(1);
     user.setGenTempOneTimePassword(1);
     user.setIsDeleted(0);
     user.setIsLocked(1);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("DvVnyGY3mzlNf0iveyXKPah57bh8W1qwmc43hPEdwdo07ZJ0Sp");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(895);
     user.setUserAccessCode(5);
     user.setUserAccessDomainId(
         (java.lang.String)
             UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
     user.setUserAccessLevelId((java.lang.String) UserAccessLevelTest._getPrimarykey());
     user.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     user.setEntityValidator(entityValidator);
     user.isValid();
     userRepository.save(user);
     map.put("UserPrimaryKey", user._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 test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("UserAccessDomainPrimaryKey"));
     UserAccessDomain useraccessdomain =
         useraccessdomainRepository.findById(
             (java.lang.String) map.get("UserAccessDomainPrimaryKey"));
     useraccessdomain.setDomainDescription("dCcAJToJ482EVyzCgVJPynFSB362bE9LPBHujEw8lDcDtYU7jy");
     useraccessdomain.setDomainHelp("m7GcpD2inUKwTTKQrUdKzRDz23vesjDYkykXkE8dIHqNI2PuX7");
     useraccessdomain.setDomainIcon("XSKndNgffaFdcNZapv9xtDzbDGEYS73M24qUQrKkdrWLzpAavr");
     useraccessdomain.setDomainName("rWfCm1NqM59YFK6VhCDrV1MXYELdop6N71Pg3qIlibZpv2Jse1");
     useraccessdomain.setUserAccessDomain(13565);
     useraccessdomain.setVersionId(1);
     useraccessdomain.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     useraccessdomainRepository.update(useraccessdomain);
   } 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());
   }
 }