@Test
public void testMakeMenuBarWithoutUpdateProjectPermission() {

    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(Path.class),
                            any(AssetUpdateValidator.class));
    verify(fileMenuBuilder,
           never()).addRename(any(Path.class),
                              any(AssetUpdateValidator.class));
    verify(fileMenuBuilder,
           never()).addDelete(any(Command.class));
    verify(fileMenuBuilder).addNewTopLevelMenu(alertsButtonMenuItem);
}