### Question:
JiwigoConvertUtils { public static Picture jiwigoImageToPicture(Image jiwigoImage) { if(jiwigoImage==null ){ return null; } Picture picture = new Picture(); picture.setId(jiwigoImage.getIdentifier()); picture.setTitle(jiwigoImage.getName()); picture.setFileName(jiwigoImage.getFile()); picture.setThumbUrl(jiwigoImage.getThumbnailUrl()); picture.setFileUrl(jiwigoImage.getUrl()); picture.setPublicUrl(jiwigoImage.getUrl()); picture.setHeight(jiwigoImage.getHeight()); picture.setWidth(jiwigoImage.getWidth()); return picture; }  static Album jiwigoCategoryToAlbum(Category jiwigoCategory); static Picture jiwigoImageToPicture(Image jiwigoImage); static Album categoriesToAlbum(List<Category> categories);  }### Answer:
@Test public void jiwigoImageToPicture() { Image jiwigoImage = new Image(); jiwigoImage.setName("Title"); jiwigoImage.setFile("Title.jpg"); jiwigoImage.setIdentifier(10214); jiwigoImage .setThumbnailUrl("http: jiwigoImage.setWidth(768); jiwigoImage.setHeight(1024); jiwigoImage .setUrl("http: Picture picture = JiwigoConvertUtils.jiwigoImageToPicture(jiwigoImage); Picture expectedPicture = new Picture(); expectedPicture.setId(10214L); expectedPicture.setTitle("Title"); expectedPicture.setFileName("Title.jpg"); expectedPicture .setFileUrl("http: expectedPicture .setPublicUrl("http: expectedPicture.setWidth(768); expectedPicture.setHeight(1024); expectedPicture .setThumbUrl("http: Assert.assertEquals(expectedPicture, picture); }