PlaceAutocompletePresenter { double getLon() { 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 LON_DEFAULT; } double diff = (boundingBox.getMaxLon() - boundingBox.getMinLon()) / 2; double midLon = boundingBox.getMinLon() + diff; return midLon; } PlaceAutocompletePresenter(PlaceDetailFetcher detailFetcher,
      PeliasFeatureConverter featureConverter,
      OnPlaceDetailsFetchedListener detailFetchListener, FilterMapper filterMapper);   }
@Test public void getLon_noBoundingBox_noLostClient_shouldReturnDefaultLat() throws Exception { double lat = presenter.getLon(); assertThat(lat).isEqualTo(0.0); }