### Question:
Graphics { public static ImageBuffer createImageBuffer(int width, int height) { return factoryGraphic.createImageBuffer(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 testInvalidImageWidth() { assertThrows(() -> Graphics.createImageBuffer(0, 1), "Invalid argument: 0 is not strictly superior to 0"); }
@Test void testInvalidImageHeight() { assertThrows(() -> Graphics.createImageBuffer(1, 0), "Invalid argument: 0 is not strictly superior to 0"); }
@Test void testCreateImageBuffer() { final ImageBuffer imageBuffer = Graphics.createImageBuffer(16, 32); assertEquals(16, imageBuffer.getWidth()); assertEquals(32, imageBuffer.getHeight()); imageBuffer.dispose(); }
@Test void testCreateImageBufferTransparentColor() { final ImageBuffer imageBuffer = Graphics.createImageBuffer(16, 32, ColorRgba.TRANSPARENT); assertEquals(16, imageBuffer.getWidth()); assertEquals(32, imageBuffer.getHeight()); assertEquals(Transparency.BITMASK, imageBuffer.getTransparency()); imageBuffer.dispose(); }