VehicleLocation { public boolean isStale(long currentTime) { return _lastUpdateTime == null || currentTime - _lastUpdateTime.getTime() > MIN_UPDATE_TIME_MS; } VehicleLocation(String vehicleRef); String getVehicleRef(); CoordinatePoint getLocation(); Date getLastLocationUpdateTime(); String getLineRef(); boolean isStale(long currentTime); boolean isPaused(); void update(Date recordedAt, MonitoredVehicleJourney mvj,
      PausedLocationListener listener); CoordinatePoint getLocationCentroid();  }
@Test public void testIsStale() { VehicleLocation location = new VehicleLocation(VEHICLE_REF); assertTrue(location.isStale(0)); location.update(new Date(0), mvj("t0", 47.668523, -122.290170), null); assertFalse(location.isStale(0)); assertTrue(location.isStale(11 * 60 * 1000)); }