### Question:
Graphics { public static void saveImage(ImageBuffer image, Media media) { factoryGraphic.saveImage(image, media); } private  Graphics(); static void setFactoryGraphic(FactoryGraphic factoryGraphic); static Screen createScreen(Config config); static Graphic createGraphic(); static Transform createTransform(); static Text createText(int size); static Text createText(String fontName, int size, TextStyle style); static ImageBuffer createImageBuffer(int width, int height); static ImageBuffer createImageBuffer(int width, int height, ColorRgba transparency); static ImageBuffer getImageBuffer(Media media); static ImageBuffer getImageBuffer(ImageBuffer imageBuffer); static ImageBuffer applyMask(ImageBuffer imageBuffer, ColorRgba maskColor); static ImageBuffer[] splitImage(ImageBuffer image, int h, int v); static ImageBuffer rotate(ImageBuffer image, int angle); static ImageBuffer resize(ImageBuffer image, int width, int height); static ImageBuffer flipHorizontal(ImageBuffer image); static ImageBuffer flipVertical(ImageBuffer image); static void saveImage(ImageBuffer image, Media media); static ImageBuffer getRasterBuffer(ImageBuffer img, double fr, double fg, double fb);  }### Answer:
@Test void testSaveImage() throws IOException { final File temp = File.createTempFile("save", ".png"); UtilFile.deleteFile(temp); final Media media = Medias.create(temp.getName()); final ImageBuffer image = Graphics.createImageBuffer(16, 32); Graphics.saveImage(image, media); assertTrue(media.exists()); image.dispose(); UtilFile.deleteFile(media.getFile()); }