@Test public void test2Update() { try { org.junit.Assert.assertNotNull(map.get("AppCustomerTypePrimaryKey")); AppCustomerType appcustomertype = appcustomertypeRepository.findById( (java.lang.String) map.get("AppCustomerTypePrimaryKey")); appcustomertype.setCustomerType("Q6FgpZqpOXSf3DEX0xDujwNQohMPRwWLePjUPHqMOkbnjN5vfJ"); appcustomertype.setDefaults(0); appcustomertype.setSequenceId(2147483647); appcustomertype.setVersionId(1); appcustomertype.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); appcustomertypeRepository.update(appcustomertype); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (java.lang.Exception e) { e.printStackTrace(); } }