@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 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());
   }
 }