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);
Assert.assertNotNull(servletMapping);
Node urlPatternTag = servletMapping.getParent().getSingle("url-pattern");
Assert.assertNotNull(urlPatternTag);
Assert.assertEquals(path, urlPatternTag.getText());
}