@Test
public void testNotifyListeners() {

    MockListener listener = new MockListener();
    ProjectConfig.Listeners listeners = new ProjectConfig.Listeners();
    listeners.add(listener);
    projectConfig.add(listeners);
    // this for init to work only.
    project.init();
    ProjectEvent event = new ProjectEvent("foo") {
    };
    project.notifyListeners(event);
    assertTrue(listener.wasNotified());
}