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