BufferedImage image = new BufferedImage(200, 100,
BufferedImage.TYPE_INT_ARGB);
Graphics2D g2 = image.createGraphics();
Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, 200, 100);
axis.setTickMarkPosition(DateTickMarkPosition.END);
List ticks = axis.refreshTicks(g2, new AxisState(), area,
RectangleEdge.BOTTOM);
assertEquals(3, ticks.size());
DateTick t1 = (DateTick) ticks.get(0);
assertEquals("31-Mar-2008", t1.getText());
DateTick t2 = (DateTick) ticks.get(1);