This test starts breaking on JDK 17.0.18 (it works with 17.0.17) because of [this change](https://www.oracle.com/java/technologies/javase/17-0-18-relnotes.html#JDK-8245545). We should remove the test.