@Test
  public void testRequest() throws Exception {
    try (LocalTestServerContext sc = new LocalTestServerContext(IMAGE)) {

      StaticMapsRequest req = StaticMapsApi.newRequest(sc.context, new Size(WIDTH, HEIGHT));
      req.center("Sydney");
      req.zoom(16);
      req.scale(2);
      req.format(ImageFormat.png32);
      req.maptype(StaticMapType.hybrid);
      req.region("AU");
      req.visible("Melbourne");
      req.await();

      sc.assertParamValue("640x480", "size");
      sc.assertParamValue("Sydney", "center");
      sc.assertParamValue("16", "zoom");
      sc.assertParamValue("2", "scale");
      sc.assertParamValue("png32", "format");
      sc.assertParamValue("hybrid", "maptype");
      sc.assertParamValue("AU", "region");
      sc.assertParamValue("Melbourne", "visible");
    }
  }
This encoded path matches the exact [MELBOURNE, SYDNEY] points.
src/test/java/com/google/maps/StaticMapsApiTest.java