private void invokeBefore() throws Exception {
    try {
      restoreSystemProperties = new AccessibleRestoreSystemProperties();
      restoreSystemProperties.before();
    } catch (Throwable throwable) {
      if (throwable instanceof Exception) {
        throw (Exception) throwable;
      }
      throw new RuntimeException(throwable);
    }
  }
Distributed version of RestoreSystemProperties JUnit Rule that restores system properties in all
DUnit VMs (except for the hidden Locator VM) in addition to the JVM running JUnit (known as the
Controller VM).
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/DistributedRestoreSystemProperties.java