//check that the first node is a group
assertTrue(doc.getPages().get(0).getModel().get(0) instanceof SGroup);
//go down the tree to the polygon
SGroup g1 = (SGroup) doc.getPages().get(0).getModel().get(0);
SGroup g2 = (SGroup) g1.getNodes().get(1);
SPoly p1 = (SPoly) g2.getNodes().get(0);
//test the color of the polygon
assertTrue(p1.getFillPaint() instanceof FlatColor);
FlatColor c1 = (FlatColor) p1.getFillPaint();
assertTrue(c1.getRGBA() == 0xFF231F20);
}