@Test
public void testMakeMenuBarWithoutUpdateProjectPermission() {

    reset(fileMenuBuilder);
    doReturn(Optional.of(mock(WorkspaceProject.class))).when(workbenchContext).getActiveWorkspaceProject();
    doReturn(promises.resolve(false)).when(projectController).canUpdateProject(any());
    presenter.makeMenuBar();
    verify(fileMenuBuilder,
           never()).addSave(any(MenuItem.class));
    verify(fileMenuBuilder,
           never()).addCopy(any(BasicFileMenuBuilder.PathProvider.class),
                            eq(assetUpdateValidator));
    verify(fileMenuBuilder,
           never()).addRename(any(BasicFileMenuBuilder.PathProvider.class),
                              eq(assetUpdateValidator));
    verify(fileMenuBuilder,
           never()).addDelete(any(BasicFileMenuBuilder.PathProvider.class),
                              eq(assetUpdateValidator));
    verify(fileMenuBuilder,
           times(1)).addNewTopLevelMenu(alertsButtonMenuItem);
}