Product implements Serializable { @Nullable public String getCountries() { if (countries == null) { return null; } return countries.replace(",", ", "); }  @JsonAnyGetter Map<String, Object> getAdditionalProperties(); @JsonAnySetter void setAdditionalProperty(String name, Object value); boolean hasProductNameIn(String languageCode); String getGenericName(String languageCode); String getIngredientsText(String languageCode); String getImageIngredientsUrl(String languageCode); String getImageNutritionUrl(String languageCode); List<String> getStatesTags(); String getLastModifiedBy(); String getWarning(); List<String> getVitaminTags(); void setVitaminTags(List<String> vitaminTags); List<String> getMineralTags(); void setMineralTags(List<String> mineralTags); List<String> getAminoAcidTags(); void setAminoAcidTags(List<String> aminoAcidTags); List<String> getOtherNutritionTags(); void setOtherNutritionTags(List<String> otherNutritionTags); String getImageSmallUrl(String languageCode); String getSelectedImage(String languageCode, ProductImageField type, ImageSize size); List<String> getAvailableLanguageForImage(ProductImageField type, ImageSize size); Map<String, ?> getImageDetails(String imageKey); boolean isLanguageSupported(String languageCode); String getImageFrontUrl(); String getImageFrontUrl(String languageCode); String getImageIngredientsUrl(); String getImageNutritionUrl(); String getManufacturerUrl(); String getUrl(); String getCode(); void setCode(String code); List<String> getTracesTags(); List<String> getIngredientsThatMayBeFromPalmOilTags(); List<String> getAdditivesTags(); List<String> getAllergensHierarchy(); String getManufacturingPlaces(); @NonNull Nutriments getNutriments(); List<Object> getIngredientsFromPalmOilTags(); List<String> getBrandsTags(); String getTraces(); @Nullable List<String> getCategoriesTags(); String getIngredientsText(); @Nullable String getProductName(); @Nullable String getProductName(final String languageCode); @Nullable String getLocalProductName(final Context context); String getGenericName(); long getIngredientsFromOrThatMayBeFromPalmOilN(); String getServingSize(); List<String> getAllergensTags(); String getAllergens(); String getOrigins(); @Nullable String getStores(); @Nullable String getNutritionGradeFr(); NutrientLevels getNutrientLevels(); @Nullable String getCountries(); @Nullable String getBrands(); @Nullable String getPackaging(); List<String> getLabelsTags(); List<String> getLabelsHierarchy(); List<Object> getCitiesTags(); String getQuantity(); long getIngredientsFromPalmOilN(); void setImageUrl(String imageUrl); String getImageUrl(String languageCode); List<Object> getEmbTags(); List<String> getCountriesTags(); String getCreator(); String getCreatedDateTime(); String getLastModifiedTime(); List<String> getEditors(); String getNovaGroups(); List<String> getEnvironmentImpactLevelTags(); String getLang(); String getPurchasePlaces(); String getNutritionDataPer(); String getNoNutritionData(); String getEnvironmentInfocard(); List<String> getIngredientsAnalysisTags(); List<LinkedHashMap<String, String>> getIngredients(); String getOtherInformation(); String getConservationConditions(); String getRecyclingInstructionsToDiscard(); String getRecyclingInstructionsToRecycle(); @Nullable String getNutritionGradeTag(); @NonNull @Override String toString();  }
@Test public void getCountries_insertsSpacesAfterCommas() throws IOException { String productJson = "{\"countries\": \"US,France,Germany\"}"; Product product = deserialize(productJson); assertThat(product.getCountries()).isEqualTo("US, France, Germany"); }