### Question:
Role extends BaseEntity implements RoleEntry { public String getCode() { return code; }  String getName(); void setName(String name); String getCode(); void setCode(String code); @JsonIgnore @Override String getId();  }### Answer:
@Test public void getCode() throws Exception { entity.setCode("Code"); assertEquals("Code", entity.getCode()); }