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

      sc.assertParamValue("Toronto", "origin");
      sc.assertParamValue("Montreal", "destination");
    }
  }
A simple query from Toronto to Montreal.

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