LayoverLocation implements Serializable { public CoordinatePoint getCentroid() { return _centroid; } 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 testGetCentroid() { LayoverLocation location = new LayoverLocation( point(47.668523, -122.290170), mins(0), 1); location.update(point(47.668527, -122.290174), mins(1)); CoordinatePoint p = location.getCentroid(); assertEquals(47.668525, p.getLat(), 0.000001); assertEquals(-122.290172, p.getLng(), 0.000001); }