public void testArrangeNN() {
BufferedImage image = new BufferedImage(100, 100,
BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = image.createGraphics();
ImageTitle t = new ImageTitle(getTestImage());
Size2D s = t.arrange(g2);
assertEquals(102.0, s.getWidth(), EPSILON);
assertEquals(102.0, s.getHeight(), EPSILON);
t.setPadding(1.0, 2.0, 3.0, 4.0);
s = t.arrange(g2);
assertEquals(106.0, s.getWidth(), EPSILON);
assertEquals(104.0, s.getHeight(), EPSILON);
t.setMargin(5.0, 6.0, 7.0, 8.0);
s = t.arrange(g2);
assertEquals(120.0, s.getWidth(), EPSILON);
assertEquals(116.0, s.getHeight(), EPSILON);
}