@Test
public void importSVG() throws Exception {
URL url = ImportTests.class.getResource("test1.svg");
SketchDocument doc = ImportAction.importSVG(url);
//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();