installation.setType( InstallationService.JDK_TYPE );
installation.setName( "automaticJdk" );
installation.setVarName( "automaticvarName" );
installation.setVarValue( "automaticvarValue" );
installation = getInstallationService().add( installation, true );
ProfileService profileService = (ProfileService) lookup( ProfileService.ROLE, "default" );
List<Profile> profiles = profileService.getAllProfiles();
assertEquals( 1, profiles.size() );
Profile profile = (Profile) profiles.get( 0 );
assertEquals( "automaticJdk", profile.getName() );
Installation jdk = profile.getJdk();
assertNotNull( jdk );