NearestPlace { NearestPlace(@NonNull Places places) { this.places = places; } NearestPlace(@NonNull Places places); @Nullable Place cached(@NonNull MLocation current); @NonNull String getString(@NonNull MLocation loc);  }
@Test public void nearestPlace() { NearestPlace nearestPlace = new NearestPlace(makePlaces()); assertEquals("Kpow", nearestPlace.cached(shelton).name); assertEquals("USA", nearestPlace.cached(shelton).country); }