### Question:
TextGame implements Text { public void draw(Graphic g, Localizable localizable, int offsetX, int offsetY, Align align, String text) { draw(g, (int) localizable.getX() + offsetX, (int) localizable.getY() + offsetY, align, text); } TextGame(String fontName, int size, TextStyle style); void update(Viewer viewer); void draw(Graphic g, Localizable localizable, int offsetX, int offsetY, Align align, String text); void drawRect(Graphic g, ColorRgba color, int x, int y, int width, int height); @Override void draw(Graphic g, int x, int y, Align alignment, String text); @Override void draw(Graphic g, int x, int y, String text); @Override void render(Graphic g); @Override void setLocation(int x, int y); @Override void setText(String text); @Override void setAlign(Align align); @Override void setColor(ColorRgba color); @Override int getSize(); @Override int getLocationX(); @Override int getLocationY(); @Override int getWidth(); @Override int getHeight(); @Override int getStringWidth(Graphic g, String str); @Override int getStringHeight(Graphic g, String str);  }### Answer:
@Test void testDraw() { final Graphic g = new GraphicMock(); final TextGame text = new TextGame(Constant.FONT_DIALOG, 8, TextStyle.NORMAL); text.setText("text"); text.setAlign(Align.CENTER); text.setColor(ColorRgba.WHITE); text.render(g); text.draw(g, 0, 0, "toto"); text.draw(g, 1, 2, Align.LEFT, "tata"); text.draw(g, Geom.createLocalizable(3, 4), 1, 2, Align.RIGHT, "titi"); text.drawRect(g, ColorRgba.BLACK, 0, 0, 10, 20); g.dispose(); }