MapzenSearch { @NonNull public Pelias getPelias() { return internalSearch; } MapzenSearch(@NonNull Context context);  MapzenSearch(@NonNull Context context, @NonNull Pelias pelias); Request suggest(@NonNull String query, @Nullable Callback<Result> callback); Request suggest(@NonNull String query, double lat, double lon,
      @Nullable Callback<Result> callback); Request search(@NonNull String query, @Nullable Callback<Result> callback); Request search(@NonNull String query, @NonNull BoundingBox box,
      @Nullable Callback<Result> callback); Request search(@NonNull String query, double lat, double lon,
      @Nullable Callback<Result> callback); Request reverse(double lat, double lon, @Nullable Callback<Result> callback); Request place(@NonNull String gid, @Nullable Callback<Result> callback); void setLocationProvider(@NonNull PeliasLocationProvider locationProvider); void setHttpHandler(@Nullable MapzenSearchHttpHandler handler); @NonNull Pelias getPelias();  }
@Test public void shouldCreatePelias() { MapzenManager.instance(context).setApiKey("fake-mapzen-api-key"); MapzenSearch mzSearch = new MapzenSearch(context); assertThat(mzSearch.getPelias()).isNotNull(); assertThat(mzSearch.searchInitializer.getRequestHandler().searchHandler().getApiKey()) .isEqualTo("fake-mapzen-api-key"); MapzenManager.instance(context).setApiKey(null); }