@Deployment(testable = false) // the incorrectly named "testable" attribute tells Arquillian whether or not
// it should add Arquillian specific metadata to the archive (which ultimately transforms it to a WebArchive).
// We don't want that, so set that flag to false
public static Archive createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
ear.addAsManifestResource(JBossAppXMLSecurityTestCase.class.getPackage(),
"jboss-app.xml", "jboss-app.xml");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addClasses(BeanInterface.class,FirstBean.class, SecondBean.class);