### Question:
Graphics { public static ImageBuffer resize(ImageBuffer image, int width, int height) { return factoryGraphic.resize(image, width, height); } 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 testResize() { final ImageBuffer image = Graphics.getImageBuffer(Medias.create("image.png")); final ImageBuffer resized = Graphics.resize(image, 1, 2); assertNotEquals(image, resized); assertEquals(1, resized.getWidth()); assertEquals(2, resized.getHeight()); resized.dispose(); image.dispose(); }