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

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

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