RangerAuditFields { public <T extends XXDBBase> T populateAuditFieldsForCreate(T xObj) { xObj.setCreateTime(DateUtil.getUTCDate()); xObj.setUpdateTime(DateUtil.getUTCDate()); xObj.setAddedByUserId(ContextUtil.getCurrentUserId()); xObj.setUpdatedByUserId(ContextUtil.getCurrentUserId()); return xObj; }  T populateAuditFields(T xObj, PARENT parentObj); T populateAuditFieldsForCreate(T xObj);  }
@Test public void test2PopulateAuditFieldsForCreate() { rangerAuditFields.populateAuditFieldsForCreate(XXDBBase); }