GlobalHTMLObserver extends GuidedTourObserver<GlobalHTMLObserver> { @Override protected void dispose() { removeGlobalEventListener(CLICK, CLICK_LISTENER); super.dispose(); } @Inject  GlobalHTMLObserver(final Disposer<GlobalHTMLObserver> selfDisposer); @PostConstruct void init(); String getDataAttributes(final HTMLElement element);  }
@Test public void testDispose() { htmlObserver.dispose(); document.removeEventListener(CLICK, htmlObserver.CLICK_LISTENER); }