PlaceAutocompletePresenter { double getLat() { BoundingBox boundingBox = null; try { boundingBox = getBoundingBox(); } catch (SecurityException e) { Log.e(TAG, "Please specify a bounding box or " + "request android.permission.ACCESS_COARSE_LOCATION in your manifest."); } if (boundingBox == null) { return LAT_DEFAULT; } double diff = (boundingBox.getMaxLat() - boundingBox.getMinLat()) / 2; double midLat = boundingBox.getMinLat() + diff; return midLat; } PlaceAutocompletePresenter(PlaceDetailFetcher detailFetcher,
      PeliasFeatureConverter featureConverter,
      OnPlaceDetailsFetchedListener detailFetchListener, FilterMapper filterMapper);   }
@Test public void getLat_noBoundingBox_noLostClient_shouldReturnDefaultLat() throws Exception { double lat = presenter.getLat(); assertThat(lat).isEqualTo(0.0); }