private void cleanup() {
    if (repository != null) {
      repository.setPort("-1");
      repository.setHost("");
      repository.setJmxUseLocator(false);
      repository.setUseSSLManager(false);
      repository.setUseSSLManager(false);
      repository.removeAllClusters();
    }
  }
This is used to test embedded pulse. If your test needs to check pulse's repository object for
assertions, use this rules to properly initialize and cleanup the repository
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/test/junit/rules/EmbeddedPulseRule.java