### Question:
FoodStoreController { @CrossOrigin(origins = "*") @GetMapping("/foodstores") public HttpEntity getAllFoodStores(@RequestHeader HttpHeaders headers) { FoodStoreController.LOGGER.info("[Food Map Service][Get All FoodStores]"); return ok(foodMapService.listFoodStores(headers)); }  @GetMapping(path = "/foodstores/welcome") String home(); @CrossOrigin(origins = "*") @GetMapping("/foodstores") HttpEntity getAllFoodStores(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping("/foodstores/{stationId}") HttpEntity getFoodStoresOfStation(@PathVariable String stationId, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping("/foodstores") HttpEntity getFoodStoresByStationIds(@RequestBody List<String> stationIdList);  }### Answer:
@Test public void testGetAllFoodStores() throws Exception { Mockito.when(foodMapService.listFoodStores(Mockito.any(HttpHeaders.class))).thenReturn(response); String result = mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/foodmapservice/foodstores")) .andExpect(MockMvcResultMatchers.status().isOk()) .andReturn().getResponse().getContentAsString(); Assert.assertEquals(response, JSONObject.parseObject(result, Response.class)); }