@Test(expected = NotFoundException.class)
  public void testNotFound() throws Exception {
    try (LocalTestServerContext sc =
        new LocalTestServerContext(
            "{\n"
                + "   \"geocoded_waypoints\" : [\n"
                + "      {\n"
                + "         \"geocoder_status\" : \"ZERO_RESULTS\"\n"
                + "      },\n"
                + "      {\n"
                + "         \"geocoder_status\" : \"ZERO_RESULTS\"\n"
                + "      }\n"
                + "   ],\n"
                + "   \"routes\" : [],\n"
                + "   \"status\" : \"NOT_FOUND\"\n"
                + "}")) {
      DirectionsApi.getDirections(sc.context, "fksjdhgf", "faldfdaf").await();
    }
  }
Test the extended transit parameters: mode and routing preference.
src/test/java/com/google/maps/DirectionsApiTest.java