@Test
  public void testToledoToMadridInSpain() throws Exception {
    try (LocalTestServerContext sc =
        new LocalTestServerContext("{\"routes\": [{}],\"status\": \"OK\"}")) {
      DirectionsApi.newRequest(sc.context)
          .origin("Toledo")
          .destination("Madrid")
          .region("es")
          .await();

      sc.assertParamValue("Toledo", "origin");
      sc.assertParamValue("Madrid", "destination");
      sc.assertParamValue("es", "region");
    }
  }
Toledo to Madrid, in Spain. This showcases region biasing results.

<p>{@code
http://maps.googleapis.com/maps/api/directions/json?origin=Toledo&destination=Madrid&region=es}
src/test/java/com/google/maps/DirectionsApiTest.java