@Test
  void testUnscaleDegenerate() throws GeometryException {
    var lessThanOnePx = 256d / 4096 / 4;
    var encoded = VectorTile.encodeGeometry(newLineString(0, 0, lessThanOnePx, lessThanOnePx), 2);
    assertEquals(6, encoded.commands().length);
    var unscaled = encoded.unscale();
    assertEquals(0, unscaled.commands().length);
    assertFalse(encoded.isEmpty());
    assertTrue(unscaled.isEmpty());
    assertEquals(GeoUtils.EMPTY_GEOMETRY, unscaled.decode());
    var reEncoded = VectorTile.encodeGeometry(unscaled.decode());
    assertEquals(0, reEncoded.commands().length);
  }
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