{
super.setUp();
DaoUtils daoUtils = (DaoUtils) lookup( DaoUtils.class.getName() );
daoUtils.eraseDatabase();
jdk1 = new Installation();
jdk1.setType( InstallationService.JDK_TYPE );
jdk1.setVarValue( "/foo/bar" );
jdk1.setName( jdk1Name );
jdk1 = getInstallationService().add( jdk1 );
jdk2 = new Installation();
jdk2.setType( InstallationService.JDK_TYPE );
jdk2.setVarValue( "/foo/bar/zloug" );
jdk2.setName( jdk2Name );
jdk2 = getInstallationService().add( jdk2 );
mvn205 = new Installation();
mvn205.setType( InstallationService.MAVEN2_TYPE );
mvn205.setVarValue( "/users/maven-2.0.5" );
mvn205.setName( mvn205Name );
mvn205 = getInstallationService().add( mvn205 );
mvn206 = new Installation();
mvn206.setType( InstallationService.MAVEN2_TYPE );
mvn206.setVarValue( "/users/maven-2.0.6" );
mvn206.setName( mvn206Name );
mvn206 = getInstallationService().add( mvn206 );
jdk1mvn205 = new Profile();
jdk1mvn205.setJdk( jdk1 );
jdk1mvn205.setBuilder( mvn205 );
jdk1mvn205.setName( jdk1mvn205Name );
getProfileService().addProfile( jdk1mvn205 );
jdk2mvn206 = new Profile();
jdk2mvn206.setJdk( jdk2 );
jdk2mvn206.setBuilder( mvn206 );
jdk2mvn206.setName( jdk2mvn206Name );
getProfileService().addProfile( jdk2mvn206 );
mvnOpts1 = new Installation();
mvnOpts1.setType( InstallationService.ENVVAR_TYPE );
mvnOpts1.setVarName( "MAVEN_OPTS" );
mvnOpts1.setVarValue( "-Xmx256m -Djava.awt.headless=true" );
mvnOpts1.setName( mvnOpts1Name );
mvnOpts1 = getInstallationService().add( mvnOpts1 );
mvnOpts2 = new Installation();
mvnOpts2.setType( InstallationService.ENVVAR_TYPE );
mvnOpts2.setVarName( "MAVEN_OPTS" );
mvnOpts2.setVarValue( "-Xmx1024m -Xms1024m" );
mvnOpts2.setName( mvnOpts2Name );
mvnOpts2 = getInstallationService().add( mvnOpts2 );