controller.setValueFor("targetPackage", "org.jboss.forge.test");
controller.setValueFor("alternative", Boolean.TRUE);
controller.setValueFor("targetTypes", Arrays.asList(ElementType.TYPE));
Assert.assertTrue(controller.isValid());
Assert.assertTrue(controller.canExecute());
Result result = controller.execute();
Assert.assertThat(result, is(not(instanceOf(Failed.class))));
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
JavaResource javaResource = facet.getJavaResource("org.jboss.forge.test.MyStereotype");
Assert.assertNotNull(javaResource);