### Question:
ToolsAwt { public static int getTransparency(Transparency transparency) { Check.notNull(transparency); final int value; if (Transparency.OPAQUE == transparency) { value = java.awt.Transparency.OPAQUE; } else if (Transparency.BITMASK == transparency) { value = java.awt.Transparency.BITMASK; } else if (Transparency.TRANSLUCENT == transparency) { value = java.awt.Transparency.TRANSLUCENT; } else { throw new LionEngineException(transparency); } return value; } private  ToolsAwt(); static int getTransparency(Transparency transparency); static BufferedImage createImage(int width, int height, int transparency); static BufferedImage getImage(InputStream input); static ImageBuffer getImageBuffer(BufferedImage image); static void saveImage(BufferedImage image, OutputStream output); static BufferedImage copyImage(BufferedImage image); static int[] getImageData(BufferedImage image); static BufferedImage applyMask(BufferedImage image, int rgba); static BufferedImage rotate(BufferedImage image, int angle); static BufferedImage resize(BufferedImage image, int width, int height); static BufferedImage flipHorizontal(BufferedImage image); static BufferedImage flipVertical(BufferedImage image); static BufferedImage[] splitImage(BufferedImage image, int h, int v); static BufferedImage getRasterBuffer(BufferedImage image, double fr, double fg, double fb); static Cursor createHiddenCursor(); static void createBufferStrategy(java.awt.Canvas component, GraphicsConfiguration conf); static void createBufferStrategy(java.awt.Window component, GraphicsConfiguration conf); static void optimizeGraphicsQuality(Graphics2D g); static void optimizeGraphicsSpeed(Graphics2D g);  }### Answer:
@Test void testTransparency() { assertThrows(() -> ToolsAwt.getTransparency(UtilEnum.make(Transparency.class, "FAIL")), "Unknown enum: FAIL"); assertEquals(java.awt.Transparency.OPAQUE, ToolsAwt.getTransparency(Transparency.OPAQUE)); assertEquals(java.awt.Transparency.BITMASK, ToolsAwt.getTransparency(Transparency.BITMASK)); assertEquals(java.awt.Transparency.TRANSLUCENT, ToolsAwt.getTransparency(Transparency.TRANSLUCENT)); }