@Test
  public void testBostonToConcordViaCharlestownAndLexington() throws Exception {
    try (LocalTestServerContext sc =
        new LocalTestServerContext("{\"routes\": [{}],\"status\": \"OK\"}")) {
      DirectionsApi.newRequest(sc.context)
          .origin("Boston,MA")
          .destination("Concord,MA")
          .waypoints("Charlestown,MA", "Lexington,MA")
          .await();

      sc.assertParamValue("Boston,MA", "origin");
      sc.assertParamValue("Concord,MA", "destination");
      sc.assertParamValue("Charlestown,MA|Lexington,MA", "waypoints");
    }
  }
Boston to Concord, via Charlestown and Lexington.

<p>{@code
http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA}
src/test/java/com/google/maps/DirectionsApiTest.java