### Question:
GraphicAwt implements Graphic { @Override public void setGraphic(Object graphic) { if (graphic instanceof Graphics2D) { g = (Graphics2D) graphic; } else if (graphic instanceof GraphicAwt) { g = ((GraphicAwt) graphic).g; } else { g = null; } } GraphicAwt();   GraphicAwt(Graphics2D g); @Override void clear(int x, int y, int width, int height); @Override void dispose(); @Override void copyArea(int x, int y, int width, int height, int dx, int dy); @Override void drawImage(ImageSurface image, int x, int y); @Override void drawImage(ImageSurface image, Transform transform, int x, int y); @Override void drawImage(ImageSurface image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2); @Override void drawImage(ImageSurface image,
                          int dx1,
                          int dy1,
                          int dx2,
                          int dy2,
                          int sx1,
                          int sy1,
                          int sx2,
                          int sy2,
                          int angle,
                          int angleX,
                          int angleY); @Override void drawRect(int x, int y, int width, int height, boolean fill); @Override void drawRect(Viewer viewer, Origin origin, double x, double y, int width, int height, boolean fill); @Override void drawGradient(int x, int y, int width, int height); @Override void drawGradient(Viewer viewer, Origin origin, double x, double y, int width, int height); @Override void drawLine(int x1, int y1, int x2, int y2); @Override void drawLine(Viewer viewer, double x1, double y1, double x2, double y2); @Override void drawOval(int x, int y, int width, int height, boolean fill); @Override void drawOval(Viewer viewer, Origin origin, double x, double y, int width, int height, boolean fill); @Override void setColor(ColorRgba color); @Override void setColorGradient(ColorGradient gc); @Override void setGraphic(Object graphic); @Override Object getGraphic(); @Override ColorRgba getColor();  }### Answer:
@Test void testSetGraphic() { final GraphicAwt g = new GraphicAwt(); g.setGraphic(g); assertEquals(UtilReflection.getField(g, "g"), g.getGraphic()); }