GeoDataApiImpl implements GeoDataApi { @Override public PendingResult<AutocompletePredictionBuffer> getAutocompletePredictions( LostApiClient client, String query, LatLngBounds bounds, AutocompleteFilter filter) { return new AutocompletePendingResult(pelias, query, bounds, filter); }  @Override PendingResult<AutocompletePredictionBuffer> getAutocompletePredictions(
      LostApiClient client, String query, LatLngBounds bounds, AutocompleteFilter filter);  }
@Test public void getAutocompletePredictions_shouldReturnAutocompletePendingResult() { PendingResult<AutocompletePredictionBuffer> result = geoDataApi.getAutocompletePredictions(null, null, null, null); assertThat(result).isInstanceOf(AutocompletePendingResult.class); }