@Test
  public void testValidateRequest_noCenterAndNoZoomWithPath() throws Exception {
    try (LocalTestServerContext sc = new LocalTestServerContext(IMAGE)) {
      StaticMapsRequest req = StaticMapsApi.newRequest(sc.context, new Size(WIDTH, HEIGHT));
      Path path = new Path();
      path.color("green");
      path.fillcolor("0xAACCEE");
      path.weight(3);
      path.geodesic(true);
      path.addPoint("Melbourne");
      path.addPoint(SYDNEY);
      req.path(path);
      req.await();
    }
  }
This encoded path matches the exact [MELBOURNE, SYDNEY] points.
src/test/java/com/google/maps/StaticMapsApiTest.java