### Question:
WebUpdateInfoController { @PostMapping("/admin/webUpdate/create") public Response create(@RequestParam("info") String info) { return ResponseUtil.success(webUpdateInfoService.create(info)); }  @PostMapping("/admin/webUpdate/create") Response create(@RequestParam("info") String info); @DeleteMapping("/admin/webUpdate/del/{id}") Response del(@PathVariable("id") long id); @PutMapping("/admin/webUpdate/update") Response update(@RequestParam("id") long id, @RequestParam("info") String info); @GetMapping("/webUpdate") Response findAll(); @GetMapping("/webUpdate/pages") Response page(@RequestParam("page") int page, @RequestParam("count") int count); @GetMapping("/lastestUpdateTime") Response lastestUpdateTime();  }### Answer:
@Test public void create() throws Exception { String info = UUID.randomUUID().toString(); mockMvc.perform(post("/admin/webUpdate/create?info=" + info).header("Authorization", adminLogin())).andDo(result -> { JSONObject object = JSONObject.fromObject(result.getResponse().getContentAsString()); assertEquals(SUCCESS.getCode(), object.getInt(Code)); assertTrue(object.containsKey(Result)); WebUpdateModel webUpdateModel = (WebUpdateModel) JSONObject.toBean(object.getJSONObject(Result), WebUpdateModel.class); assertEquals(info, webUpdateModel.getInfo()); assertNotNull(webUpdateModel.getTime()); assertNotEquals(0, webUpdateModel.getId()); }); }