LayoverLocation implements Serializable { public boolean isStale(long t) { return t - _lastUpdateTime.getTime() > MAX_TIME_BETWEEN_UPDATES_MS; } LayoverLocation(PausedLocation pausedLocation);  LayoverLocation(CoordinatePoint centroid, Date lastUpdateTime,
      int samples); CoordinatePoint getCentroid(); int getSamples(); boolean isSignificant(); boolean isStale(long t); boolean includesLocation(CoordinatePoint location); void update(CoordinatePoint location, Date updateTime);  }
@Test public void testIsStale() { LayoverLocation location = new LayoverLocation( point(47.668523, -122.290170), mins(10), 1); assertFalse(location.isStale(mins(7 * 24 * 60).getTime())); assertTrue(location.isStale(mins(7 * 24 * 60 + 15).getTime())); }