### Question:
TextHeadless implements Text { @Override public void draw(Graphic g, int x, int y, String text) { draw(g, x, y, Align.LEFT, text); } TextHeadless(String fontName, int size, TextStyle style); @Override void draw(Graphic g, int x, int y, String text); @Override void draw(Graphic g, int x, int y, Align alignment, 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 testBold() { final Text text = Graphics.createText(Constant.FONT_DIALOG, 12, TextStyle.BOLD); text.draw(g, 0, 0, VALUE); }
@Test void testItalic() { final Text text = Graphics.createText(Constant.FONT_DIALOG, 12, TextStyle.ITALIC); text.draw(g, 0, 0, VALUE); }