void () { Disposer.dispose(disposable); Collection<VirtualFilePointer> pointersAfter = myVirtualFilePointerManager.dumpAllPointers(); int nListeners = myVirtualFilePointerManager.numberOfListeners(); myVirtualFilePointerManager = null; assertEquals(numberOfListenersBefore, nListeners); assertEquals(pointersBefore, pointersAfter); }