Buggy code:
@ RunWith ( Arquillian . class ) public class ParseAndMarshalModelsTestCase { private static final String JBOSSAS_PROJECT_DIR = System . getProperty ( "jbossas.project.dir" ) ; @ Deployment public static Archive < ? > getDeployment ( ) { return ShrinkWrapUtils . createJavaArchive ( "bogus.jar" , ParseAndMarshalModelsTestCase . class . getPackage ( ) ) . add ( new Asset ( ) { public InputStream openStream ( ) { <START_BUG> return new ByteArrayInputStream ( "Dependencies:<seq2seq4repair_space>org.jboss.staxmapper,org.jboss.as.controller,org.jboss.as.deployment-repository,org.jboss.as.server,org.jboss.as.host-controller,org.jboss.as.domain-management,org.jboss.as.domain-controller\n\n" . getBytes ( ) ) ; <END_BUG> } } , "META-INF//MANIFEST.MF" ) ; } private ServiceContainer serviceContainer ; @ Before public void setupServiceContainer ( ) { } @ After public void cleanup ( ) throws Exception { } @ Test public void testStandaloneXml ( ) throws Exception { } @ Test public void testStandaloneHAXml ( ) throws Exception { } @ Test public void testStandaloneOSGiOnlyXml ( ) throws Exception { } @ Test public void testStandaloneXtsXml ( ) throws Exception { } @ Test public void test700StandaloneXml ( ) throws Exception { } @ Test public void test701StandaloneXml ( ) throws Exception { } @ Test public void test702StandaloneXml ( ) throws Exception { } @ Test public void test700StandaloneHAXml ( ) throws Exception { } @ Test public void test701StandaloneHAXml ( ) throws Exception { } @ Test public void test702StandaloneHAXml ( ) throws Exception { } @ Test public void test700StandalonePreviewXml ( ) throws Exception { } @ Test public void test701StandalonePreviewXml ( ) throws Exception { } @ Test public void test702StandalonePreviewXml ( ) throws Exception { } @ Test public void test700StandalonePreviewHAXml ( ) throws Exception { } @ Test public void test701StandalonePreviewHAXml ( ) throws Exception { } @ Test public void test702StandalonePreviewHAXml ( ) throws Exception { } @ Test public void test701StandaloneXtsXml ( ) throws Exception { } @ Test public void test702StandaloneXtsXml ( ) throws Exception { } private void standaloneXmlTest ( File original ) throws Exception { } @ Test public void testHostXml ( ) throws Exception { } @ Test public void test700HostXml ( ) throws Exception { } @ Test public void test701HostXml ( ) throws Exception { } @ Test public void test702HostXml ( ) throws Exception { } private void hostXmlTest ( final File original ) throws Exception { } @ Test public void testDomainXml ( ) throws Exception { } @ Test public void testDomainOSGiOnlyXml ( ) throws Exception { } @ Test public void test700DomainXml ( ) throws Exception { } @ Test public void test701DomainXml ( ) throws Exception { } @ Test public void test702DomainXml ( ) throws Exception { } @ Test public void test700DomainPreviewXml ( ) throws Exception { } @ Test public void test701DomainPreviewXml ( ) throws Exception { } @ Test public void test702DomainPreviewXml ( ) throws Exception { } private void domainXmlTest ( File original ) throws Exception { } private void fixupOSGiStandalone ( ModelNode node1 , ModelNode node2 ) { } private void fixupOSGiDomain ( ModelNode node1 , ModelNode node2 ) { } private String convertToSingleLine ( String value ) { } private void compare ( ModelNode node1 , ModelNode node2 ) { } private ModelNode loadServerModel ( final File file ) throws Exception { } private ModelNode loadHostModel ( final File file ) throws Exception { } private ModelNode loadDomainModel ( File file ) throws Exception { } public ModelController createController ( final ModelNode model , final ParseAndMarshalModelsTestCase . Setup registration ) throws InterruptedException { } private void executeOperations ( ModelController controller , List < ModelNode > ops ) { } private File getOriginalStandaloneXml ( String profile ) { } private File getDomainConfigDir ( ) { } private File getOriginalHostXml ( final String profile ) { } private File getOriginalDomainXml ( final String profile ) { } private File getLegacyConfigFile ( String type , final String profile ) { } private void copyFile ( final File src , final File dest ) throws Exception { } private void close ( Closeable closeable ) { } DescriptionProvider getRootDescriptionProvider ( ) { } interface Setup { void setup ( Resource resource , ManagementResourceRegistration rootRegistration ) { } } class ModelControllerService extends AbstractControllerService { private final CountDownLatch latch = new CountDownLatch ( 1 ) ; private final ModelNode model ; private final ParseAndMarshalModelsTestCase . Setup registration ; ModelControllerService ( final ControlledProcessState processState , final ParseAndMarshalModelsTestCase . Setup registration , final ModelNode model ) { } @ Override protected void boot ( BootContext context ) throws ConfigurationPersistenceException { } protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } } private static class MockContentRepository implements ContentRepository { private static final ParseAndMarshalModelsTestCase . MockContentRepository INSTANCE = new ParseAndMarshalModelsTestCase . MockContentRepository ( ) ; @ Override public byte [ ] addContent ( InputStream stream ) throws IOException { } @ Override public VirtualFile getContent ( byte [ ] hash ) { } @ Override public boolean hasContent ( byte [ ] hash ) { } @ Override public void removeContent ( byte [ ] hash ) { } } private static class MockFileRepository implements FileRepository { private static final ParseAndMarshalModelsTestCase . MockFileRepository INSTANCE = new ParseAndMarshalModelsTestCase . MockFileRepository ( ) ; @ Override public File getFile ( String relativePath ) { } @ Override public File getConfigurationFile ( String relativePath ) { } @ Override public File [ ] getDeploymentFiles ( byte [ ] deploymentHash ) { } @ Override public File getDeploymentRoot ( byte [ ] deploymentHash ) { } } private static class MockDomainController implements DomainController { public LocalHostControllerInfo getLocalHostInfo ( ) { } public void registerRemoteHost ( ProxyController hostControllerClient ) { } public void unregisterRemoteHost ( String id ) { } public void registerRunningServer ( ProxyController serverControllerClient ) { } public void unregisterRunningServer ( String serverName ) { } public ModelNode getProfileOperations ( String profileName ) { } public FileRepository getLocalFileRepository ( ) { } public FileRepository getRemoteFileRepository ( ) { } public void stopLocalHost ( ) { } } }

Fix:
return new ByteArrayInputStream ( "Dependencies:<seq2seq4repair_space>org.jboss.staxmapper,org.jboss.as.controller,org.jboss.as.deployment-repository,org.jboss.as.server,org.jboss.as.host-controller,org.jboss.as.domain-management\n\n" . getBytes ( ) ) ;