@Override
    public void renameProject(Project project, final String name) {
        synchronized (this) {
            project.getLookup().lookup(ProjectInformationImpl.class).setName(name);
            fireProjectEvent((pl) -> pl.changed(project));
        }
    }
@Test
    public void testRenameProject() {
        ProjectControllerImpl pc = new ProjectControllerImpl();
        pc.addProjectListener(projectListener);
        Project project = pc.newProject();
        pc.renameProject(project, "foo");
        Assert.assertEquals("foo", project.getName());
        Mockito.verify(projectListener).changed(project);
    }