### Question:
GetMatchingArtistNamesController { @GetMapping("/artists") @ResponseBody public ResponseEntity<List<String>> getMatchingArtistNames( @RequestParam(name="prefix") String prefix ) { List<String> artistNames = service.getMatchingArtistNames(prefix); return new ResponseEntity<>(artistNames, HttpStatus.OK); }  @GetMapping("/artists") @ResponseBody ResponseEntity<List<String>> getMatchingArtistNames(
            @RequestParam(name="prefix") String prefix
    );  }### Answer:
@Test public void testGetMatchingArtistNames() throws Exception { this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build(); this.mockMvc.perform(get("/artists").param("prefix", "van") .accept(MediaType.ALL)) .andExpect(status().isOk()); }