@Before
  public void startLocatorWithObjectTraverserFunction() throws IOException {
    Path jarPath = folderRule.getFolder().toPath().resolve("traverse-encapsulated-jdk-object.jar");
    createJarWithClasses(jarPath, TraverseEncapsulatedJdkObject.class);

    int locatorPort = getRandomAvailableTCPPort();
    String locators = "localhost[" + locatorPort + "]";

    startServer = "start server --name=server --disable-default-server --locators=" + locators;
    traverseEncapsulatedJdkObject = GfshScript
        .of("connect --locator=" + locators)
        .and("execute function --id=" + TraverseEncapsulatedJdkObject.ID);

    GfshScript
        .of("start locator --port=" + locatorPort)
        .and("deploy --jar=" + jarPath)
        .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