final MapWidget m = new MapWidget();
final Polygon polyline = setupPolygon(m);
m.addOverlay(polyline);
polyline.setEditingEnabled(true);
polyline.addPolygonLineUpdatedHandler(new PolygonLineUpdatedHandler() {
public void onUpdate(PolygonLineUpdatedEvent event) {
finishTest();
}