@Test
public void validateURIBuilderForSpecialChars() throws ApplicationException, UnsupportedEncodingException {
final String artistName = "Sonny & Cher";
final String trackName = "I Got You Babe";
NameValuePair artist = new BasicNameValuePair(PARAM_ARTIST, artistName);
NameValuePair track = new BasicNameValuePair(PARAM_TRACK, trackName);
NameValuePair api_key = new BasicNameValuePair(PARAM_API_KEY, API_KEY);
URI uri = new AbstractWSGetClient() {
}.getURI(Arrays.asList(artist, track, api_key));
String expected = HTTP + "://" + HOST + PATH
+ "?" + PARAM_ARTIST + "=" + URLEncoder.encode(artistName, UTF8)
+ "&" + PARAM_TRACK + "=" + URLEncoder.encode(trackName, UTF8)