Assert.assertThat(result, is(not(instanceOf(Failed.class))));
project = projectHelper.refreshProject(project);
Assert.assertTrue(project.hasFacet(EJBFacet.class));
Assert.assertTrue(project.hasFacet(JMSFacet.class));
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
JavaResource javaResource = facet.getJavaResource("org.jboss.forge.test.TestEJB");
Assert.assertNotNull(javaResource);
Assert.assertThat(javaResource.getJavaType(), is(instanceOf(JavaClass.class)));
Assert.assertTrue(javaResource.getJavaType().hasAnnotation(MessageDriven.class));
Assert.assertFalse(((JavaClass<?>) javaResource.getJavaType()).hasField("serialVersionUID"));
Assert.assertNotNull(((JavaClass<?>) javaResource.getJavaType()).getMethod("onMessage", Message.class));