public void testUnregisterListenersOnUnregisterComponent() throws Exception {
ConnectedComponent component = mock(ConnectedComponent.class);
_protocol.registerComponent(component);
IAddRemoveListener childListener = mock(IAddRemoveListener.class);
IZkDataListener dataListener = mock(IZkDataListener.class);
_protocol.registerChildListener(component, PathDef.NODES_LIVE, childListener);
_protocol.registerDataListener(component, PathDef.NODES_LIVE, "node1", dataListener);
_zk.getZkClient().createPersistent(_zk.getZkConf().getZkPath(PathDef.NODES_LIVE, "node1"));
Thread.sleep(500);