facet.setConfigurationStrategy(config);
Assert.assertTrue(project.hasFacet(ServletFacet_3_0.class));
Assert.assertSame(config, facet.getConfigurationStrategy());
Assert.assertEquals("/rest", facet.getApplicationPath());
XMLResource webConfig = project.getFacet(ServletFacet_3_0.class).getConfigFile().reify(XMLResource.class);
Assert.assertNotNull(webConfig);
Node xmlSource = webConfig.getXmlSource();
Assert.assertNotNull(xmlSource);
Node servletClass = xmlSource.getSingle("servlet/servlet-name=" + RestWebXmlConfigurationStrategy.JAXRS_SERVLET);
Node servletMapping = xmlSource.getSingle("servlet-mapping/servlet-name="
+ RestWebXmlConfigurationStrategy.JAXRS_SERVLET);
Assert.assertNotNull(servletClass);