### Question:
TimedMessage implements Updatable, Renderable { public void addMessage(String message, int x, int y, long time) { messages.add(new MessageData(message, x, y, time)); hasMessage = true; } 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 testAddMessage() { final TimedMessage message = new TimedMessage(Graphics.createText(Constant.FONT_DIALOG, 8, TextStyle.NORMAL)); assertFalse(message.hasMessage()); message.addMessage("test", 0, 0, 50L); assertTrue(message.hasMessage()); }