public void run() {
panorama = newDefaultPanorama();
final double yaw = 180;
panorama.addYawChangedHandler(new StreetviewYawChangedHandler() {
public void onYawChanged(StreetviewYawChangedEvent event) {
assertEquals(panorama, event.getSender());
// 'If' instead of 'assert', as this event might be triggered few
// times before we invoke setPov() method
if (Math.abs(yaw - event.getYaw()) < 1e-2) {