### Question:
Permission extends BaseEntity implements PermissionEntry { public Type getType() { return type; }  String getRoleOid(); void setRoleOid(String roleOid); Type getType(); void setType(Type type); String getRestrictedItemOid(); void setRestrictedItemOid(String restrictedItemOid); short getPriorityLevel(); void setPriorityLevel(short priorityLevel); @Override @JsonIgnore String getRestrictedItemId();  }### Answer:
@Test public void getType() throws Exception { entity.setType(Permission.Type.MENU); assertEquals(Permission.Type.MENU, entity.getType()); }