@Test
  public void dependentScopedViewIsInstantiatedOnce() throws MalformedURLException {
    String uri = deriveMappingForUI(NoViewProviderNavigationUI.class);
    openWindow(uri);
    assertThat(InstrumentedView.getNumberOfInstances(), is(1));
    firstWindow.click(NAVIGATE_BUTTON);
    waitModel.waitForChange(retrieveText.locator(LABEL));
    assertThat(InstrumentedView.getNumberOfInstances(), is(1));
    assertThat(NoViewProviderNavigationUI.getNumberOfInstances(), is(1));
    assertThat(NoViewProviderNavigationUI.getNumberOfNavigations(), is(1));

    firstWindow.click(NAVIGATE_BUTTON);
    waitModel.waitForChange(retrieveText.locator(LABEL));
    assertThat(InstrumentedView.getNumberOfInstances(), is(1));
    assertThat(NoViewProviderNavigationUI.getNumberOfInstances(), is(1));
    assertThat(NoViewProviderNavigationUI.getNumberOfNavigations(), is(2));
  }
 @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();
 }