### Question:
Cursor implements Resource, Shape, Updatable, Renderable { public void addImage(int id, Media media) { renderer.addImage(id, media); } Cursor(); void addImage(int id, Media media); void setInputDevice(InputDevicePointer pointer); void setViewer(Viewer viewer); void setSyncMode(boolean sync); void setSensibility(double sh, double sv); void setLocation(int x, int y); void setSurfaceId(int surfaceId); void setRenderingOffset(int ox, int oy); void setArea(int minX, int minY, int maxX, int maxY); void setGrid(int width, int height); void setVisible(boolean visible); int getClick(); boolean hasClicked(int click); boolean hasClickedOnce(int click); Integer getSurfaceId(); double getSensibilityHorizontal(); double getSensibilityVertical(); double getScreenX(); double getScreenY(); boolean isSynchronized(); @Override void load(); @Override boolean isLoaded(); @Override void dispose(); @Override void update(double extrp); @Override void render(Graphic g); @Override double getX(); @Override double getY(); @Override int getWidth(); @Override int getHeight();  }### Answer:
@Test void testAddExistingId() { final Cursor cursor = new Cursor(); cursor.addImage(1, Medias.create("cursor.png")); cursor.addImage(1, Medias.create("cursor.png")); }