throws Exception
{
ContinuumNotificationDispatcher notificationDispatcher =
(ContinuumNotificationDispatcher) lookup( ContinuumNotificationDispatcher.ROLE );
ContinuumStore store = getStore();
Project project = addProject( store, "Notification Dispatcher Test Project" );
project = store.getProjectWithBuildDetails( project.getId() );
BuildResult build = new BuildResult();
build.setStartTime( System.currentTimeMillis() );
build.setState( ContinuumProjectState.BUILDING );
build.setTrigger( ContinuumProjectState.TRIGGER_SCHEDULED );
store.addBuildResult( project, build );
build = store.getBuildResult( build.getId() );
notificationDispatcher.buildComplete( project, null, build );
}