@Test
  public void testSimpleReverseGeocode() throws Exception {
    try (LocalTestServerContext sc = new LocalTestServerContext(simpleReverseGeocodeResponse)) {
      LatLng latlng = new LatLng(40.714224, -73.961452);
      GeocodingResult[] results =
          GeocodingApi.newRequest(sc.context).latlng(latlng).await().results;

      assertNotNull(results);
      assertNotNull(Arrays.toString(results));
      assertEquals("277 Bedford Ave, Brooklyn, NY 11211, USA", results[0].formattedAddress);
      assertEquals("277", results[0].addressComponents[0].longName);
      assertEquals("277", results[0].addressComponents[0].shortName);
      assertEquals(AddressComponentType.STREET_NUMBER, results[0].addressComponents[0].types[0]);
      assertEquals(AddressType.STREET_ADDRESS, results[0].types[0]);

      sc.assertParamValue(latlng.toUrlValue(), "latlng");
    }
  }
Simple reverse geocoding. <a
href="https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452">Reverse
geocode (40.714224,-73.961452)</a>.
src/test/java/com/google/maps/GeocodingApiTest.java