public BrooklynProperties buildProperties() {
   BrooklynProperties result = emptyIfNull(properties);
   if (disablePersistenceBackups)
     LocalManagementContextForTests.disablePersistenceBackups(result);
   if (disableOsgi) LocalManagementContextForTests.disableOsgi(result);
   if (emptyCatalog) LocalManagementContextForTests.setEmptyCatalogAsDefault(result);
   return result;
 }
 @BeforeMethod(alwaysRun = true)
 public void setUp() throws Exception {
   managementContext = LocalManagementContextForTests.newInstance();
   brooklynProperties = managementContext.getBrooklynProperties();
 }