@Test
public void testNotificationsOnNewMBeans() throws Exception {
long value1 = treeWatcher.getCounter();
// now lets register a new mbean
GitFacade git = new GitFacade();
git.setCloneRemoteRepoOnStartup(false);
git.init();
long value2 = treeWatcher.getCounter();
assertCounterGreater(value1, value2);
git.destroy();
long value3 = treeWatcher.getCounter();
assertCounterGreater(value2, value3);
}