@Test
  void testBoundFilters() throws Exception {
    var origResult = runForBoundsTest(0, 2, "", "");
    var bboxResult = runForBoundsTest(0, 2, "bounds", "1,-85.05113,180,-1");
    var polyResult = runForBoundsTest(0, 2, "polygon", TestUtils.pathToResource("bottomrightearth.poly").toString());

    assertEquals(1 + 4 + 16, origResult.tiles.size());
    assertEquals(Set.of(
      TileCoord.ofXYZ(0, 0, 0),
      TileCoord.ofXYZ(1, 1, 1),
      TileCoord.ofXYZ(2, 2, 2),
      TileCoord.ofXYZ(3, 2, 2),
      TileCoord.ofXYZ(2, 3, 2),
      TileCoord.ofXYZ(3, 3, 2)
    ), bboxResult.tiles.keySet());
    assertEquals(Set.of(
      TileCoord.ofXYZ(0, 0, 0),
      TileCoord.ofXYZ(1, 1, 1),
      // TileCoord.ofXYZ(2, 2, 2),  - omit since this one is outside of triangle
      TileCoord.ofXYZ(3, 2, 2),
      TileCoord.ofXYZ(2, 3, 2),
      TileCoord.ofXYZ(3, 3, 2)
    ), polyResult.tiles.keySet());

    // but besides the omitted tile, the rest should be the same
    bboxResult.tiles.remove(TileCoord.ofXYZ(2, 2, 2));
    assertEquals(bboxResult.tiles, polyResult.tiles);
  }
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