public static void addTestHook(DistributedSystem sys, MembershipTestHook hook) {
    ((InternalDistributedSystem) sys).getDistributionManager().registerTestHook(hook);
  }
register a test hook with the manager
geode-dunit/src/main/java/org/apache/geode/distributed/internal/membership/api/MembershipManagerHelper.java