@Test
public void testGetTextBasePoint() {

    AbstractAWTDrawVisitor visitor = new NestedAWTDrawVisitor();
    visitor.setTransform(new AffineTransform());
    Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = (Graphics2D) image.getGraphics();
    Point point = visitor.getTextBasePoint("Foo", 3, 5, g2d);
    Assert.assertNotNull(point);
}