@Test
  public void testSupportedAddressTypesFood() throws Exception {
    try (LocalTestServerContext sc =
        new LocalTestServerContext(
            "\n"
                + "{\n"
                + "   \"results\" : [\n"
                + "      {\n"
                + "         \"address_components\" : [\n"
                + "            {\n"
                + "               \"long_name\" : \"21800\",\n"
                + "               \"short_name\" : \"21800\",\n"
                + "               \"types\" : [ \"street_number\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"West Eleven Mile Road\",\n"
                + "               \"short_name\" : \"W Eleven Mile Rd\",\n"
                + "               \"types\" : [ \"route\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"Southfield\",\n"
                + "               \"short_name\" : \"Southfield\",\n"
                + "               \"types\" : [ \"locality\", \"political\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"Oakland County\",\n"
                + "               \"short_name\" : \"Oakland County\",\n"
                + "               \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"Michigan\",\n"
                + "               \"short_name\" : \"MI\",\n"
                + "               \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"United States\",\n"
                + "               \"short_name\" : \"US\",\n"
                + "               \"types\" : [ \"country\", \"political\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"48076\",\n"
                + "               \"short_name\" : \"48076\",\n"
                + "               \"types\" : [ \"postal_code\" ]\n"
                + "            }\n"
                + "         ],\n"
                + "         \"formatted_address\" : \"21800 W Eleven Mile Rd, Southfield, MI 48076, USA\",\n"
                + "         \"geometry\" : {\n"
                + "            \"location\" : {\n"
                + "               \"lat\" : 42.4879618,\n"
                + "               \"lng\" : -83.2595228\n"
                + "            },\n"
                + "            \"location_type\" : \"ROOFTOP\",\n"
                + "            \"viewport\" : {\n"
                + "               \"northeast\" : {\n"
                + "                  \"lat\" : 42.4893107802915,\n"
                + "                  \"lng\" : -83.25817381970849\n"
                + "               },\n"
                + "               \"southwest\" : {\n"
                + "                  \"lat\" : 42.4866128197085,\n"
                + "                  \"lng\" : -83.26087178029151\n"
                + "               }\n"
                + "            }\n"
                + "         },\n"
                + "         \"place_id\" : \"ChIJ6zOD5dy3JIgRgsMEeGna5dI\",\n"
                + "         \"types\" : [\n"
                + "            \"establishment\",\n"
                + "            \"food\",\n"
                + "            \"grocery_or_supermarket\",\n"
                + "            \"point_of_interest\",\n"
                + "            \"store\"\n"
                + "         ]\n"
                + "      }\n"
                + "   ],\n"
                + "   \"status\" : \"OK\"\n"
                + "}\n")) {
      String address = "Noah's Marketplace, 21800 W Eleven Mile Rd";
      GeocodingResult[] results =
          GeocodingApi.newRequest(sc.context).address(address).await().results;

      assertNotNull(results);
      assertNotNull(Arrays.toString(results));
      assertEquals(AddressType.ESTABLISHMENT, results[0].types[0]);
      assertEquals(AddressType.FOOD, results[0].types[1]);
      assertEquals(AddressType.GROCERY_OR_SUPERMARKET, results[0].types[2]);
      assertEquals(AddressType.POINT_OF_INTEREST, results[0].types[3]);
      assertEquals(AddressType.STORE, results[0].types[4]);

      sc.assertParamValue(address, "address");
    }
  }
Testing supported Address Types for Geocoding.
src/test/java/com/google/maps/GeocodingApiTest.java