### Question:
IMSController { @RequestMapping(value = "/ping", method = RequestMethod.GET) @ResponseBody public ResponseEntity ping() { Map response = new HashMap(); response.put("message", "pong"); return ResponseBuilder.build(response, HTTP_OK_CODE); }  @RequestMapping(value = "/ping", method = RequestMethod.GET) @ResponseBody ResponseEntity ping(); @RequestMapping(value = "/api/inventory/count", method = RequestMethod.POST) @ResponseBody ResponseEntity getInventory(@RequestBody IMSRequestQuery payload); @RequestMapping(value = "/api/users/count", method = RequestMethod.POST) @ResponseBody ResponseEntity getUserEstimate(@RequestBody IMSRequestQuery payload); @RequestMapping(value = "/api/bookings", method = RequestMethod.POST) @ResponseBody ResponseEntity book(@RequestBody IMSBookingRequest payload); @RequestMapping(value = "/api/bookings/{bookingId}", method = RequestMethod.DELETE) @ResponseBody ResponseEntity removeBooking(@PathVariable("bookingId") String bookingId); @RequestMapping(value = "/api/{advId}/bookings", method = RequestMethod.GET) @ResponseBody ResponseEntity getAdvID(@PathVariable("advId") String advId); @RequestMapping(value = "/api/bookings/{bookingId}", method = RequestMethod.GET) @ResponseBody ResponseEntity getBookingById(@PathVariable("bookingId") String bookingId); @RequestMapping(value = "/api/chart", method = RequestMethod.POST) @ResponseBody ResponseEntity chart(@RequestBody IMSRequestQuery payload);  }### Answer:
@Test public void ping() throws Exception { MvcResult res = mockMvc.perform(get("/ping").accept( MediaType.APPLICATION_JSON)).andExpect(status().isOk()).andReturn(); String content = res.getResponse().getContentAsString(); System.out.println("ping " + content); }