@Test
  public void testLanguageParameter() throws Exception {
    try (LocalTestServerContext sc = new LocalTestServerContext("{\"status\" : \"OK\"}")) {
      String[] origins = new String[] {"Vancouver BC", "Seattle"};
      String[] destinations = new String[] {"San Francisco", "Victoria BC"};
      DistanceMatrixApi.newRequest(sc.context)
          .origins(origins)
          .destinations(destinations)
          .mode(TravelMode.BICYCLING)
          .language("fr-FR")
          .await();

      sc.assertParamValue(StringUtils.join(origins, "|"), "origins");
      sc.assertParamValue(StringUtils.join(destinations, "|"), "destinations");
      sc.assertParamValue(TravelMode.BICYCLING.toUrlValue(), "mode");
      sc.assertParamValue("fr-FR", "language");
    }
  }
Test the language parameter.

<p>Sample request: <a
href="http://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC|Seattle&destinations=San+Francisco|Victoria+BC&mode=bicycling&language=fr-FR">
origins: Vancouver BC|Seattle, destinations: San Francisco|Victoria BC, mode: bicycling,
language: french</a>.
src/test/java/com/google/maps/DistanceMatrixApiTest.java