}
@Test(timeout = 60000)
public void testWatchMetadataRemoval() throws Exception {
LedgerManagerFactory factory = ReflectionUtils.newInstance(lmFactoryCls);
factory.initialize(baseConf, super.zkc, factory.getCurrentVersion());
LedgerManager manager = factory.newLedgerManager();
final ByteBuffer bbLedgerId = ByteBuffer.allocate(8);
final CountDownLatch createLatch = new CountDownLatch(1);
final CountDownLatch removeLatch = new CountDownLatch(1);