This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Listener listener = new Listener ();
node.addNodeListener(listener);
assertNull ("The object is not there yet", node.getCookie (obj.getClass ()));
ic.add (obj);
listener.assertEvents ("One change in node", 1, -1);