@BeforeMethod(alwaysRun = true)
 @Override
 public void setUp() throws Exception {
   catalogPersistenceWasEnabled =
       BrooklynFeatureEnablement.isEnabled(
           BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY);
   BrooklynFeatureEnablement.enable(
       BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY);
   super.setUp();
   origApp.createAndManageChild(EntitySpec.create(TestEntity.class));
 }
 @AfterMethod(alwaysRun = true)
 @Override
 public void tearDown() throws Exception {
   super.tearDown();
   BrooklynFeatureEnablement.setEnablement(
       BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY,
       catalogPersistenceWasEnabled);
 }
  public RebindManagerImpl(ManagementContextInternal managementContext) {
    this.managementContext = managementContext;
    this.persistencePublicChangeListener = ChangeListener.NOOP;

    this.persistPoliciesEnabled =
        BrooklynFeatureEnablement.isEnabled(
            BrooklynFeatureEnablement.FEATURE_POLICY_PERSISTENCE_PROPERTY);
    this.persistEnrichersEnabled =
        BrooklynFeatureEnablement.isEnabled(
            BrooklynFeatureEnablement.FEATURE_ENRICHER_PERSISTENCE_PROPERTY);
    this.persistFeedsEnabled =
        BrooklynFeatureEnablement.isEnabled(
            BrooklynFeatureEnablement.FEATURE_FEED_PERSISTENCE_PROPERTY);
    this.persistCatalogItemsEnabled =
        BrooklynFeatureEnablement.isEnabled(
            BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY);

    danglingRefFailureMode =
        managementContext.getConfig().getConfig(DANGLING_REFERENCE_FAILURE_MODE);
    rebindFailureMode = managementContext.getConfig().getConfig(REBIND_FAILURE_MODE);
    addConfigFailureMode = managementContext.getConfig().getConfig(ADD_CONFIG_FAILURE_MODE);
    addPolicyFailureMode = managementContext.getConfig().getConfig(ADD_POLICY_FAILURE_MODE);
    loadPolicyFailureMode = managementContext.getConfig().getConfig(LOAD_POLICY_FAILURE_MODE);

    danglingRefsQuorumRequiredHealthy =
        managementContext.getConfig().getConfig(DANGLING_REFERENCES_MIN_REQUIRED_HEALTHY);

    LOG.debug(
        "{} initialized, settings: policies={}, enrichers={}, feeds={}, catalog={}",
        new Object[] {
          this,
          persistPoliciesEnabled,
          persistEnrichersEnabled,
          persistFeedsEnabled,
          persistCatalogItemsEnabled
        });
  }