Buggy code:
public final class ManagedDeployableContainer extends CommonDeployableContainer < ManagedContainerConfiguration > { private static final String CONFIG_PATH = "//standalone//configuration//" ; private static final int PORT_RANGE_MIN = 1 ; private static final int PORT_RANGE_MAX = 65535 ; private final Logger log = Logger . getLogger ( ManagedDeployableContainer . class . getName ( ) ) ; private Thread shutdownThread ; private Process process ; @ Override public Class < ManagedContainerConfiguration > getConfigurationClass ( ) { } private static boolean processHasDied ( final Process process ) { } @ Override protected void startInternal ( ) throws LifecycleException { } private void waitOnPorts ( ) throws PortAcquisitionTimeoutException { } private boolean isPortAvailable ( final int port ) { } @ Override protected void stopInternal ( ) throws LifecycleException { } private boolean isServerRunning ( ) { } private void failDueToRunning ( ) throws LifecycleException { <START_BUG> throw new LifecycleException ( ( "The<seq2seq4repair_space>server<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>running!<seq2seq4repair_space>" + ( ( ( ( "Managed<seq2seq4repair_space>containers<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>running<seq2seq4repair_space>server<seq2seq4repair_space>instances<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>" + "possible<seq2seq4repair_space>harmful<seq2seq4repair_space>effect<seq2seq4repair_space>of<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>server.<seq2seq4repair_space>Please<seq2seq4repair_space>stop<seq2seq4repair_space>server<seq2seq4repair_space>before<seq2seq4repair_space>running<seq2seq4repair_space>or<seq2seq4repair_space>" ) + "change<seq2seq4repair_space>to<seq2seq4repair_space>another<seq2seq4repair_space>type<seq2seq4repair_space>of<seq2seq4repair_space>container.\n" ) + "To<seq2seq4repair_space>disable<seq2seq4repair_space>this<seq2seq4repair_space>check<seq2seq4repair_space>and<seq2seq4repair_space>allow<seq2seq4repair_space>Arquillian<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>a<seq2seq4repair_space>running<seq2seq4repair_space>server,<seq2seq4repair_space>" ) + "set<seq2seq4repair_space>allowConnectingToRunningServer<seq2seq4repair_space>to<seq2seq4repair_space>true<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>container<seq2seq4repair_space>configuration" ) ) ) ; <END_BUG> } private int destroyProcess ( ) { } private class ConsoleConsumer implements Runnable { @ Override public void run ( ) { } } }

Fix:
throw new LifecycleException ( ( "The<seq2seq4repair_space>server<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>running!<seq2seq4repair_space>" + ( ( ( ( "Managed<seq2seq4repair_space>containers<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>running<seq2seq4repair_space>server<seq2seq4repair_space>instances<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>" + "possible<seq2seq4repair_space>harmful<seq2seq4repair_space>effect<seq2seq4repair_space>of<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>server.<seq2seq4repair_space>Please<seq2seq4repair_space>stop<seq2seq4repair_space>server<seq2seq4repair_space>before<seq2seq4repair_space>running<seq2seq4repair_space>or<seq2seq4repair_space>" ) + "change<seq2seq4repair_space>to<seq2seq4repair_space>another<seq2seq4repair_space>type<seq2seq4repair_space>of<seq2seq4repair_space>container.\n" ) + "To<seq2seq4repair_space>disable<seq2seq4repair_space>this<seq2seq4repair_space>check<seq2seq4repair_space>and<seq2seq4repair_space>allow<seq2seq4repair_space>Arquillian<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>a<seq2seq4repair_space>running<seq2seq4repair_space>server,<seq2seq4repair_space>" ) + "set<seq2seq4repair_space>allowConnectingToRunningServer<seq2seq4repair_space>to<seq2seq4repair_space>true<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>container<seq2seq4repair_space>configuration" ) ) ) ;