### Question:
GetSongsController { @GetMapping("/songs") @ResponseBody public ResponseEntity<List<Song>> getSongsByArtist( @RequestParam(name="artist") String artist ) { System.out.println(artist); List<Song> data = service.getSongsForArtist(artist); return new ResponseEntity<>(data, HttpStatus.OK); }  @GetMapping("/artists/{artist}/songs/{name}") @ResponseBody ResponseEntity<Song> getSong(
            @PathVariable("artist") final String artist,
            @PathVariable("name") final String name
    ); @GetMapping("/songs") @ResponseBody ResponseEntity<List<Song>> getSongsByArtist(
            @RequestParam(name="artist") String artist
    );  }### Answer:
@Test public void getSongsByArtistTest() throws Exception { this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build(); this.mockMvc.perform(get("/songs").param("artist", "van halen") .accept(MediaType.ALL)) .andExpect(status().isOk()); }