@Test
  public void testValidateRequest_noCenterAndNoZoomWithMarkers() throws Exception {
    try (LocalTestServerContext sc = new LocalTestServerContext(IMAGE)) {
      StaticMapsRequest req = StaticMapsApi.newRequest(sc.context, new Size(WIDTH, HEIGHT));

      Markers markers = new Markers();
      markers.size(MarkersSize.small);
      markers.customIcon("http://not.a/real/url", CustomIconAnchor.bottomleft, 2);
      markers.color("blue");
      markers.label("A");
      markers.addLocation("Melbourne");
      markers.addLocation(SYDNEY);
      req.markers(markers);
      req.await();
    }
  }
This encoded path matches the exact [MELBOURNE, SYDNEY] points.
src/test/java/com/google/maps/StaticMapsApiTest.java