AutocompletePrediction { @Nullable public String getPlaceId() { return placeId; } AutocompletePrediction(@Nullable String id, @Nullable String text); CharSequence getFullText(@Nullable CharacterStyle characterStyle); CharSequence getPrimaryText(@Nullable CharacterStyle characterStyle); CharSequence getSecondaryText(@Nullable CharacterStyle characterStyle); @Nullable String getPlaceId(); @Nullable List<Integer> getPlaceTypes();  }
@Test public void getPlaceId_shouldReturnCorrectId() { String placeId = prediction.getPlaceId(); assertThat(placeId).isEqualTo(id); }