### Question:
WxCpDepartmentServiceImpl implements WxCpDepartmentService { @Override public void update(WxCpDepart group) throws WxErrorException { String url = "https: this.mainService.post(url, group.toJson()); } 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(dependsOnMethods = {"testList", "testCreate"}) public void testUpdate() throws Exception { System.out.println("=================更新部门"); this.depart.setName("子部门改名" + System.currentTimeMillis()); this.wxCpService.getDepartmentService().update(this.depart); }