### Question:
RedditScraperController { void storeAndLabel(RedditResponse response) { for (Listing listing : response.data.children) { storeAndLabel(listing); } }  @RequestMapping("/reddit") String getRedditUrls(RestTemplate restTemplate);  }### Answer:
@Test public void testScrape() throws Exception { Image img1 = new Image(new Source("http: Image img2 = new Image(new Source("http: RedditResponse redditResponse = new RedditResponse(new Data( new Listing[]{new Listing(new ListingData(new Preview(new Image[]{img1, img2})))})); redditResponse.data.children[0].data.url = "http: scraper.storeAndLabel(redditResponse); verify(cuteImageService).uploadJpeg("http: new URL("http: verify(cuteImageService).uploadJpeg("http: new URL("http: }