@Test
public void testVisit() {

    Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = (Graphics2D) image.getGraphics();
    AWTDrawVisitor visitor = new AWTDrawVisitor(g2d);
    visitor.setFontManager(new AWTFontManager());
    visitor.setTransform(new AffineTransform());
    visitor.visit(new TextElement(2, 3, "Foo", Color.BLACK));
    // at least we now know it did not crash...
    Assert.assertNotNull(visitor);
}