Buggy code:
@ RunWith ( Arquillian . class ) public class HibernateNativeAPITransactionTestCase { private static final String ARCHIVE_NAME = "hibernate4native_transactiontest" ; public static final String hibernate_cfg = "<?xml<seq2seq4repair_space>version='1.0'<seq2seq4repair_space>encoding='utf-8'?>" + ( ( ( ( ( ( ( "<!DOCTYPE<seq2seq4repair_space>hibernate-configuration<seq2seq4repair_space>PUBLIC<seq2seq4repair_space>" + "\"////Hibernate//Hibernate<seq2seq4repair_space>Configuration<seq2seq4repair_space>DTD<seq2seq4repair_space>3.0////EN\"<seq2seq4repair_space>" ) + "\"http:////www.hibernate.org//dtd//hibernate-configuration-3.0.dtd\">" ) + "<hibernate-configuration><session-factory>" ) + "<property<seq2seq4repair_space>name=\"show_sql\">true<//property>" ) + "<property<seq2seq4repair_space>name=\"current_session_context_class\">thread<//property>" ) + "<mapping<seq2seq4repair_space>resource=\"testmapping.hbm.xml\"//>" ) + "<//session-factory><//hibernate-configuration>" ) ; public static final String testmapping = "<?xml<seq2seq4repair_space>version=\"1.0\"?>" + ( ( ( ( ( ( ( ( ( ( ( "<!DOCTYPE<seq2seq4repair_space>hibernate-mapping<seq2seq4repair_space>PUBLIC<seq2seq4repair_space>" + "\"-////Hibernate//Hibernate<seq2seq4repair_space>Mapping<seq2seq4repair_space>DTD<seq2seq4repair_space>3.0////EN\"<seq2seq4repair_space>" ) + "\"http:////www.hibernate.org//dtd//hibernate-mapping-3.0.dtd\">" ) + "<hibernate-mapping<seq2seq4repair_space>package=\"org.jboss.as.test.integration.hibernate\">" ) + "<class<seq2seq4repair_space>name=\"org.jboss.as.test.integration.hibernate.Student\"<seq2seq4repair_space>table=\"STUDENT\">" ) + "<id<seq2seq4repair_space>name=\"studentId\"<seq2seq4repair_space>column=\"student_id\">" ) + "<generator<seq2seq4repair_space>class=\"native\"//>" ) + "<//id>" ) + "<property<seq2seq4repair_space>name=\"firstName\"<seq2seq4repair_space>column=\"first_name\"//>" ) + "<property<seq2seq4repair_space>name=\"lastName\"<seq2seq4repair_space>column=\"last_name\"//>" ) + "<property<seq2seq4repair_space>name=\"address\"//>" ) + "<//class><//hibernate-mapping>" ) ; @ ArquillianResource private static InitialContext iniCtx ; @ BeforeClass public static void beforeClass ( ) throws NamingException { } @ Deployment public static Archive < ? > deploy ( ) throws Exception { EnterpriseArchive ear = ShrinkWrap . create ( EnterpriseArchive . class , ( ( HibernateNativeAPITransactionTestCase . ARCHIVE_NAME ) + ".ear" ) ) ; <START_BUG> ear . addAsManifestResource ( new StringAsset ( "Dependencies:<seq2seq4repair_space>org.javassist,org.hibernate\n" ) , "MANIFEST.MF" ) ; <END_BUG> JavaArchive lib = ShrinkWrap . create ( JavaArchive . class , "beans.jar" ) ; lib . addClasses ( SFSBHibernateTransaction . class ) ; ear . addAsModule ( lib ) ; lib = ShrinkWrap . create ( JavaArchive . class , "entities.jar" ) ; lib . addClasses ( Student . class ) ; lib . addAsResource ( new StringAsset ( HibernateNativeAPITransactionTestCase . testmapping ) , "testmapping.hbm.xml" ) ; lib . addAsResource ( new StringAsset ( HibernateNativeAPITransactionTestCase . hibernate_cfg ) , "hibernate.cfg.xml" ) ; ear . addAsLibraries ( lib ) ; final WebArchive main = ShrinkWrap . create ( WebArchive . class , "main.war" ) ; main . addClasses ( HibernateNativeAPITransactionTestCase . class ) ; ear . addAsModule ( main ) ; ear . addAsManifestResource ( new StringAsset ( ( "<jboss-deployment-structure>" + ( ( ( ( ( ( "<seq2seq4repair_space><deployment>" + "<seq2seq4repair_space><dependencies>" ) + "<seq2seq4repair_space><module<seq2seq4repair_space>name=\"com.h2database.h2\"<seq2seq4repair_space>//>" ) + "<seq2seq4repair_space><module<seq2seq4repair_space>name=\"org.slf4j\"//>" ) + "<seq2seq4repair_space><//dependencies>" ) + "<seq2seq4repair_space><//deployment>" ) + "<//jboss-deployment-structure>" ) ) ) , "jboss-deployment-structure.xml" ) ; return ear ; } protected static < T > T lookup ( String beanName , Class < T > interfaceType ) throws NamingException { } private static void dumpJndi ( String s ) { } private static void dumpTreeEntry ( NamingEnumeration < NameClassPair > list , String s ) throws NamingException { } @ Test public void testSimpleOperation ( ) throws Exception { } @ Test public void testRollBackOperation ( ) throws Exception { } }

Fix:
ear . addAsManifestResource ( new StringAsset ( "Dependencies:<seq2seq4repair_space>org.hibernate\n" ) , "MANIFEST.MF" ) ;