@Before
 public void resetCounter() {
   PlainUI.resetCounter();
   PlainAlternativeUI.resetCounter();
   PlainColidingAlternativeUI.resetCounter();
   InstrumentedUI.resetCounter();
   InstrumentedView.resetCounter();
   ScopedInstrumentedView.resetCounter();
   ViewWithoutAnnotation.resetCounter();
   WithAnnotationRegisteredView.resetCounter();
   SecondUI.resetCounter();
   RootUI.resetCounter();
   RootWithCustomMappingUI.resetCounter();
   UIWithCDIDependentListener.resetCounter();
   UIWithCDISelfListener.resetCounter();
   DependentCDIEventListener.resetCounter();
   DependentCDIEventListener.resetEventCounter();
   ParameterizedNavigationUI.reset();
   NoViewProviderNavigationUI.resetCounter();
   firstWindow.restartBrowser();
 }
 @Test
 public void cdiEventsArrivesInDependentListener() throws MalformedURLException {
   assertThat(UIWithCDIDependentListener.getNumberOfInstances(), is(0));
   assertThat(DependentCDIEventListener.getNumberOfDeliveredEvents(), is(0));
   assertThat(DependentCDIEventListener.getNumberOfInstances(), is(0));
   String uri = deriveMappingForUI(UIWithCDIDependentListener.class);
   openWindow(uri);
   waitModel.until(elementPresent.locator(LABEL));
   firstWindow.click(BUTTON);
   waitModel.waitForChange(retrieveText.locator(LABEL));
   assertThat(UIWithCDIDependentListener.getNumberOfInstances(), is(1));
   assertThat(DependentCDIEventListener.getNumberOfInstances(), is(1));
   assertThat(DependentCDIEventListener.getNumberOfDeliveredEvents(), is(1));
   firstWindow.click(BUTTON);
   waitModel.waitForChange(retrieveText.locator(LABEL));
   assertThat(UIWithCDIDependentListener.getNumberOfInstances(), is(1));
   assertThat(DependentCDIEventListener.getNumberOfInstances(), is(2));
   assertThat(DependentCDIEventListener.getNumberOfDeliveredEvents(), is(2));
 }