JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setName("ApplicationRestConfig")
.setPackage("com.test.foo");
RestFacet_1_1 facet = facetFactory.install(project, RestFacet_1_1.class);
Assert.assertNotNull(facet);
RestConfigurationStrategy config = RestConfigurationStrategyFactory.createUsingJavaClass(path, javaClass);
facet.setConfigurationStrategy(config);
Assert.assertTrue(project.hasFacet(JavaSourceFacet.class));
Assert.assertSame(config, facet.getConfigurationStrategy());
Assert.assertEquals(path, facet.getApplicationPath());
}