double[] xCoordinates = {0.2, 4, 5.5, 1};
double[] yCoordinates = {6.5, 1.2, 3.6, 4.5};
g = gMock();
painter = painter1(g);
painter.fillPolygon(xCoordinates, yCoordinates);
verify(g).fillPolygon(new int[] {2, 40, 55, 10}, new int[] {65, 12, 36, 45}, 4);
g = gMock();
painter = painter2(g);
painter.fillPolygon(xCoordinates, yCoordinates);