String httpResponse = new ResourceUtil(SCROBBLED_TRACKS).getContent();
when(httpClient.execute(Mockito.any(HttpUriRequest.class),
Mockito.any(ResponseHandler.class))).thenReturn(httpResponse);
// create a client out of the components above
ScrobbledTracksClient stClient = new ScrobbledTracksClient();
stClient.setWebserviceHistoryService(historyService);
stClient.setHttpClient(httpClient);
// create a throttling service that allows calls at any rate
ThrottleService throttleService = mock(ThrottleService.class);
stClient.setThrottleService(throttleService);
return stClient;
}