packaging.setPackagingType("war");
FacesFacet_2_1 facet = facetFactory.install(project, FacesFacet_2_1.class);
Assert.assertNotNull(facet);
FileResource<?> configFile = facet.getConfigFile();
Assert.assertTrue(configFile.exists());
WebFacesConfigDescriptor config = facet.getConfig();
config.createApplication().defaultRenderKitId("foo");
Assert.assertTrue(configFile.exists());
facet.saveConfig(config);
Assert.assertTrue(configFile.exists());
Assert.assertEquals("2.1", facet.getSpecVersion().toString());
Assert.assertTrue(project.hasFacet(FacesFacet.class));