@Test
  public void testOnDependenciesSelected() throws Exception {

    when(lockManagerInstanceProvider.get()).thenReturn(mock(LockManager.class));

    Path pathToPOM = mock(Path.class);
    model.setPathToPOM(pathToPOM);

    when(view.getDependenciesPart()).thenReturn(dependenciesPart);

    presenter.onStartup(mock(PlaceRequest.class));

    presenter.onDependenciesSelected();

    verify(view).showDependenciesPanel();
  }