LatLng[] points = { //
LatLng.newInstance(45, 45), //
LatLng.newInstance(45, -45), //
LatLng.newInstance(0, 0)};
Polyline p = new Polyline(points);
map.addOverlay(p);
RootPanel.get().add(map);
double result = p.getLength();
assertTrue("non-negative length", result > 0);
}
});