@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));
  }
 @Test
 public void dependentScopedViewIsInstantiatedTwiceWithViewProvider()
     throws MalformedURLException {
   openWindow(firstWindow, INSTRUMENTED_VIEW_URI);
   firstWindow.click(NAVIGATE_BUTTON);
   waitModel.waitForChange(retrieveText.locator(LABEL));
   assertThat(InstrumentedView.getNumberOfInstances(), is(2));
 }