### Question:
GoogleMapsGeocoder extends Geocoder { @Override public GeocodeResponse query(String address, int maxResults) throws RemoteGeocodeException { final String encodedAddress; try { encodedAddress = URLEncoder.encode(address, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } String transportAgnosticUrl = "maps.googleapis.com/maps/api/geocode/json?address=" + encodedAddress + "&sensor=true&language=" + language; InputStream inputData = openStream(transportAgnosticUrl); GeocodeResponse res = null; try { res = response2Graph(inputData); } catch (RemoteGeocodeException e) { throw new RemoteGeocodeException(transportAgnosticUrl, e.status); } if (maxResults == -1) { return res; } else { return sizeLimited(res, maxResults); } } GoogleMapsGeocoder(String language);  GoogleMapsGeocoder(String language, boolean forceHttps); @Override GeocodeResponse query(String address, int maxResults); @Override GeocodeResponse getFromLocation(double latitude, double longitude); GeocodeResponse response2Graph(InputStream apply);  }### Answer:
@Test @Ignore public void testRemoteCoding() throws IOException, RemoteGeocodeException { GeocodeResponse response = new GoogleMapsGeocoder("en").query("Ungargasse 6 1030 Wien", -1); assertEquals("Ungargasse 6, 1030 Wien, Austria", response.results.get(0).formattedAddress); }
@Test @Ignore public void testRemoteCodingGerman() throws IOException, RemoteGeocodeException { GeocodeResponse response = new GoogleMapsGeocoder("de").query("Ungargasse 6 1030 Wien", -1); assertEquals("Ungargasse 6, 1030 Wien, Österreich", response.results.get(0).formattedAddress); }