@Test
  public void canMakeEncapsulatedFieldsAccessibleInPackagesOpenedByArgumentFile() {
    // A few of the packages opened by this argument file are specific to Linux JDKs. Running this
    // test on other operating systems might emit some warnings, but they are harmless.
    String argumentFileName = "open-all-jdk-packages-linux-openjdk-17";
    Path argumentFilePath = Paths.get(System.getenv("GEODE_HOME"), "config", argumentFileName)
        .toAbsolutePath().normalize();

    String useArgumentFile = " --J=@" + argumentFilePath;

    gfshRule.execute(startServer + useArgumentFile);

    traverseEncapsulatedJdkObject
        .expectExitCode(0) // Because the argument file opens all JDK packages.
        .execute(gfshRule);
  }
Test several ways to make normally inaccessible JDK packages accessible on JDK 17.
geode-assembly/src/acceptanceTest/java/org/apache/geode/jdk/JdkEncapsulationTest.java