@Test
public void testAccept() {

    TextElement elem = new TextElement(0, 0, "Foo", Color.ORANGE);
    MockVisitor visitor = new MockVisitor();
    Assert.assertFalse(visitor.isVisited);
    elem.accept(visitor);
    Assert.assertTrue(visitor.isVisited);
}