### Question:
WxCpDepartmentServiceImpl implements WxCpDepartmentService { @Override public Long create(WxCpDepart depart) throws WxErrorException { String url = "https: String responseContent = this.mainService.post(url, depart.toJson()); JsonElement tmpJsonElement = new JsonParser().parse(responseContent); return GsonHelper.getAsLong(tmpJsonElement.getAsJsonObject().get("id")); } WxCpDepartmentServiceImpl(WxCpService mainService); @Override Long create(WxCpDepart depart); @Override void update(WxCpDepart group); @Override void delete(Long departId); @Override List<WxCpDepart> list(Long id);  }### Answer:
@Test public void testCreate() throws Exception { WxCpDepart cpDepart = new WxCpDepart(); cpDepart.setName("子部门" + System.currentTimeMillis()); cpDepart.setParentId(1L); cpDepart.setOrder(1L); Long departId = this.wxCpService.getDepartmentService().create(cpDepart); System.out.println(departId); }