@Test
  public void testSupportedAddressTypesSynagogue() throws Exception {
    try (LocalTestServerContext sc =
        new LocalTestServerContext(
            "\n"
                + "{\n"
                + "   \"results\" : [\n"
                + "      {\n"
                + "         \"address_components\" : [\n"
                + "            {\n"
                + "               \"long_name\" : \"15620\",\n"
                + "               \"short_name\" : \"15620\",\n"
                + "               \"types\" : [ \"street_number\" ]\n"
                + "            },\n"
                + "            {\n"
                + "               \"long_name\" : \"West 10 Mile Road\",\n"
                + "               \"short_name\" : \"W 10 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\" : \"48075\",\n"
                + "               \"short_name\" : \"48075\",\n"
                + "               \"types\" : [ \"postal_code\" ]\n"
                + "            }\n"
                + "         ],\n"
                + "         \"formatted_address\" : \"15620 W 10 Mile Rd, Southfield, MI 48075, USA\",\n"
                + "         \"geometry\" : {\n"
                + "            \"location\" : {\n"
                + "               \"lat\" : 42.4742111,\n"
                + "               \"lng\" : -83.2046522\n"
                + "            },\n"
                + "            \"location_type\" : \"ROOFTOP\",\n"
                + "            \"viewport\" : {\n"
                + "               \"northeast\" : {\n"
                + "                  \"lat\" : 42.4755600802915,\n"
                + "                  \"lng\" : -83.20330321970849\n"
                + "               },\n"
                + "               \"southwest\" : {\n"
                + "                  \"lat\" : 42.4728621197085,\n"
                + "                  \"lng\" : -83.20600118029151\n"
                + "               }\n"
                + "            }\n"
                + "         },\n"
                + "         \"place_id\" : \"ChIJn5hABPnIJIgRr_d3wqujFS0\",\n"
                + "         \"types\" : [ \"establishment\", \"place_of_worship\", \"point_of_interest\", \"synagogue\" ]\n"
                + "      }\n"
                + "   ],\n"
                + "   \"status\" : \"OK\"\n"
                + "}\n")) {
      String address = "Ahavas Olam, 15620 W. Ten Mile Road";
      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.PLACE_OF_WORSHIP, results[0].types[1]);
      assertEquals(AddressType.POINT_OF_INTEREST, results[0].types[2]);
      assertEquals(AddressType.SYNAGOGUE, results[0].types[3]);

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