@Test
public void testGraphic002() throws FOrayException {
final AreaTreeCreator creator = AreaTreeCreator.getInstance();
final AreaTree areaTree = creator.buildAreaTree(
"fo/graphic-002.fo");
final NormalFlowRA firstNormalFlowArea = this.getFirstNormalFlowArea(
areaTree);
/* There are two block areas. */
assertEquals(2, firstNormalFlowArea.getChildCount());
/* The second one contains the graphic. */
AreaNode node = firstNormalFlowArea.getChildAt(1);
assertTrue(node instanceof NormalBlockArea);
/* It has one child, a LineArea ... */
assertEquals(1, node.getChildCount());
node = node.getChildAt(0);