### Question:
LastfmWebApi { public ArtistDto[] searchArtist(String name, int page) { throw new UnsupportedOperationException(); } LastfmWebApi(Request request);  LastfmWebApi(Request request, Gson gson); ArtistDto[] searchArtist(String name, int page); AlbumDto[] getAlbums(String artistMbid, int page); TrackDto[] getAlbumInfo(String albumMbid);  }### Answer:
@Test public void searchForArtistsNamedDavid(){ Request req = new BaseRequest(HttpRequest::openStream); LastfmWebApi api = new LastfmWebApi(req); ArtistDto[] artists = api.searchArtist("david", 1); String name = artists[0].getName(); assertEquals("David Bowie", name); }