### Question:
RoleGroup extends BaseEntity implements RoleGroupEntry { @JsonIgnore @Override public String getId() { return getOid(); }  String getRoleOid(); void setRoleOid(String roleOid); String getGroupOid(); void setGroupOid(String groupOid); @JsonIgnore @Override String getId(); @JsonIgnore @Override String getRoleId();  }### Answer:
@Test public void roleGroup() { RoleGroup roleGroup = new RoleGroup(); String oid = UUID.randomUUID().toString(); roleGroup.setOid(oid); Assert.assertTrue(roleGroup.getOid().equals(oid)); Assert.assertTrue(roleGroup.getId().equals(oid)); }
@Test public void getId() throws Exception { entity.setOid("123451234512345"); assertEquals("123451234512345", entity.getId()); }