public static void setLatch() {
    countDownLatch = new CountDownLatch(1);
  }
This is for testing running functions
geode-core/src/distributedTest/java/org/apache/geode/management/internal/pulse/TestFunctionsDUnitTest.java