private static void assertIsFillOrEdge(boolean isFillOrEdge, boolean isFill, Geometry geom) {
    for (int rotation : List.of(0, 90, 180, 270)) {
      var rectangle =
        AffineTransformation.rotationInstance(Math.PI * rotation / 180, 128, 128).transform(geom);
      for (int scale = 0; scale < 4; scale++) {
        assertEquals(isFillOrEdge, VectorTile.encodeGeometry(rectangle, scale).isFillOrEdge(),
          "scale=" + scale + " rotation=" + rotation);
        assertEquals(isFill, VectorTile.encodeGeometry(rectangle, scale).isFill(),
          "scale=" + scale + " rotation=" + rotation);
      }
    }
  }
This class is copied from
https://github.com/ElectronicChartCentre/java-vector-tile/blob/master/src/test/java/no/ecc/vectortile/VectorTileEncoderTest.java
and modified based on the changes in VectorTileEncoder, and adapted to junit 5.
planetiler-core/src/test/java/com/onthegomap/planetiler/VectorTileTest.java