### Question:
EmptyLibraryScreen { public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); @PostConstruct void setup(); void trySamples(); void importProject(); View getView();  }### Answer:
@Test public void importProjectWithPermissionTest() { emptyLibraryScreen.importProject(); verify(libraryPlaces).goToImportRepositoryPopUp(); }
@Test public void importProjectWithoutPermissionTest() { doReturn(false).when(projectController).canCreateProjects(any()); emptyLibraryScreen.importProject(); verify(libraryPlaces, never()).goToImportRepositoryPopUp(); }