@Override
  public void close() {
    try {
      server.shutdown();
    } catch (IOException e) {
      System.err.println("Failed to close server: " + e);
    }
  }
Local test mock server for unit tests.
src/test/java/com/google/maps/LocalTestServerContext.java