@Test
  void testIssue509LenaDelta() throws Exception {
    OsmXml osmInfo = TestUtils.readOsmXml("issue_509_lena_delta.xml");
    List<OsmElement> elements = convertToOsmElements(osmInfo);

    var results = runWithOsmElements(
      Map.of("threads", "1"),
      elements,
      (in, features) -> {
        if (in.hasTag("natural", "water")) {
          features.polygon("water").setAttr("id", in.id()).setMinZoom(10);
        }
      }
    );

    Map<Integer, Integer> counts = new TreeMap<>();
    for (var tile : results.tiles().keySet()) {
      counts.merge(tile.z(), 1, Integer::sum);
    }

    assertEquals(Map.of(
      10, 39,
      11, 125,
      12, 397,
      13, 1160,
      14, 3108
    ), counts);
  }
In-memory tests with fake data and profiles to ensure all features work end-to-end.
planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java