### Question:
TimedMessage implements Updatable, Renderable { @Override public void render(Graphic g) { for (final MessageData messageData : messages) { text.draw(g, messageData.x, messageData.y, messageData.message); } } TimedMessage(Text text); void addMessage(String message, int x, int y, long time); boolean hasMessage(); @Override void update(double extrp); @Override void render(Graphic g);  }### Answer:
@Test void testRender() { final TimedMessage message = new TimedMessage(Graphics.createText(Constant.FONT_DIALOG, 8, TextStyle.NORMAL)); message.addMessage("test", 0, 0, 0L); final Graphic g = Graphics.createGraphic(); message.render(g); message.update(1.0); message.render(g); g.dispose(); assertFalse(message.hasMessage()); }