### Question:
ItemController { @GetMapping(value = "/find") public JsonResponse findByName(@RequestParam("name") String name){ Item item = itemService.getItemsByName(name); JsonResponse response = new JsonResponse(); response.setSuccess(true); response.setData(item); response.setMessage(item == null ? "Item not found" : "Item found"); return response; }  @PostMapping( value = "/add") JsonResponse create(@RequestBody ItemForm form); @GetMapping(value = "/remove/{id}") JsonResponse delete(@PathVariable("id") Long id); @GetMapping(value = "/find") JsonResponse findByName(@RequestParam("name") String name); @GetMapping(value = "/all") JsonResponse getAll();  }### Answer:
@Test public void testFindByName() { given() .log() .all().contentType("application/json") .when() .get("/items/api/find?name=" + item.getName()) .then() .statusCode(200) .body("success", Matchers.is(true)) .body("data.name", Matchers.is(item.getName())) .body("data.quantity", Matchers.is(item.getQuantity())) .body("message", Matchers.is("Item found")); }