//for the third -- in this case the two items should have the new content but the third with the exception should
//retain the old good cached content.
String newContent = "new content from refresh";
restTemplate = createNiceMock(RestTemplate.class);
expect(restTemplate.getForObject(new URI(VALID_URL1), String.class)).andReturn(newContent);
expect(restTemplate.getForObject(new URI(VALID_URL2), String.class)).andThrow(new RestClientException("Boom"));
expect(restTemplate.getForObject(new URI(VALID_URL3), String.class)).andReturn(newContent);
replay(restTemplate);
//Use reflection to stuff the new RestTemplate instance into our existing content fetcher instance
ReflectionTestUtils.setField(service, "restTemplate", restTemplate);