### Question:
ViewImagesController { @RequestMapping("/") public String view(Model model) throws IOException { List<StorageObject> objects = cuteImageService.listAll(); List<Image> images = new ArrayList<>(); for (StorageObject obj : objects) { Image image = new Image(getPublicUrl(cuteImageService.getBucketName(), obj.getName()), obj.getMetadata().get("label")); images.add(image); } model.addAttribute("images", images); return "index"; }  @RequestMapping("/") String view(Model model); @RequestMapping("/label/{label}") String viewLabel(@PathVariable("label") String label, Model model);  }### Answer:
@Test public void testView() throws Exception { Image img1 = new Image(ViewImagesController.getPublicUrl(BUCKET, "obj1"), "dog"); Image img2 = new Image(ViewImagesController.getPublicUrl(BUCKET, "obj2"), "cat"); mvc.perform(get("/")).andExpect(model().attribute("images", containsInAnyOrder(img1, img2))); }