### Question:
RestaurantController { @GetMapping("/restaurants") public List<Restaurant> list( @RequestParam("region") String region, @RequestParam("category") Long categoryId ) { List<Restaurant> restaurants = restaurantService.getRestaurants(region, categoryId); return restaurants; }  @GetMapping("/restaurants") List<Restaurant> list(
            @RequestParam("region") String region,
            @RequestParam("category") Long categoryId
    ); @GetMapping("/restaurants/{id}") Restaurant detail(@PathVariable("id") Long id);  }### Answer:
@Test public void list() throws Exception { List<Restaurant> restaurants = new ArrayList<>(); restaurants.add(Restaurant.builder() .id(1004L) .categoryId(1L) .name("JOKER House") .address("Seoul") .build()); given(restaurantService.getRestaurants("Seoul", 1L)) .willReturn(restaurants); mvc.perform(get("/restaurants?region=Seoul&category=1")) .andExpect(status().isOk()) .andExpect(content().string( containsString("\"id\":1004") )) .andExpect(content().string( containsString("\"name\":\"JOKER House\"") )); }