public void testInstallFacet() throws Exception
{
Project project = projectHelper.createJavaLibraryProject();
projectHelper.installJPA_2_0(project);
facetFactory.install(project, PersistenceMetaModelFacet.class);
MavenPluginFacet facet = project.getFacet(MavenPluginFacet.class);
MavenPlugin processorPlugin = facet.getPlugin(CoordinateBuilder.create("org.bsc.maven:maven-processor-plugin"));
MavenPlugin compilerPlugin = facet.getPlugin(CoordinateBuilder
.create("org.apache.maven.plugins:maven-compiler-plugin"));
assertTrue(project.hasFacet(PersistenceMetaModelFacet.class));
assertNotNull(processorPlugin);
assertEquals(1, processorPlugin.listExecutions().size());