assertEquals( ContinuumProjectState.OK, build.getState() );
project.setState( build.getState() );
getProjectDao().updateProject( project );
BuildDefinition buildDef = new BuildDefinition();
buildDef.setType( "maven2" );
buildDef.setBuildFile( "pom.xml" );
buildDef.setGoals( "clean install" );
buildDef.setArguments( "" );
BuildDefinitionDao buildDefDao = (BuildDefinitionDao) lookup( BuildDefinitionDao.class );
buildDef = buildDefDao.addBuildDefinition( buildDef );
build.setBuildDefinition( buildDef );
assertEquals( ContinuumProjectState.OK, build.getState() );