* Test the "endline" event using a trigger.
*/
public void testPolygonEndLineTrigger() {
loadApi(new Runnable() {
public void run() {
final MapWidget m = new MapWidget();
final Polygon polyline = setupPolygon(m);
final LatLng testLatLng = LatLng.newInstance(31, 32);
m.addOverlay(polyline);
polyline.setDrawingEnabled();
polyline.addPolygonEndLineHandler(new PolygonEndLineHandler() {
public void onEnd(PolygonEndLineEvent event) {
assertEquals("event.getLatLng()", testLatLng, event.getLatLng());