Buggy code:
public class RemoteProxyControllerProtocolTestCase { RemoteChannelPairSetup channels ; @ Before public void start ( ) throws Exception { } @ After public void stop ( ) throws Exception { } @ Test @ Ignore ( "OperationMessageHandlerProxy<seq2seq4repair_space>turned<seq2seq4repair_space>off<seq2seq4repair_space>temporarily" ) public void testOperationMessageHandler ( ) throws Exception { } @ Test public void testOperationControlFailed ( ) throws Exception { } @ Test public void testOperationControlExceptionInController ( ) throws Exception { } @ Test public void testTransactionCommit ( ) throws Exception { } @ Test public void testTransactionRollback ( ) throws Exception { } @ Test public void testFailAfterPrepare ( ) throws Exception { } @ Test public void testAttachmentInputStreams ( ) throws Exception { } @ Test public void testClosesBeforePrepare ( ) throws Exception { } private void assertArrays ( byte [ ] expected , byte [ ] actual ) { } private RemoteProxyController setupProxyHandlers ( final ModelController proxiedController ) { try { channels = new RemoteChannelPairSetup ( ) ; channels . setupRemoting ( new ManagementChannelInitialization ( ) { @ Override public ManagementChannelHandler startReceiving ( Channel channel ) { final ManagementChannelHandler support = new ManagementChannelHandler ( channel , channels . getExecutorService ( ) ) ; support . addHandlerFactory ( new org . jboss . as . controller . remote . TransactionalProtocolOperationHandler ( proxiedController , support ) ) ; channel . addCloseHandler ( new org . jboss . remoting3 . CloseHandler < Channel > ( ) { @ Override public void handleClose ( Channel closed , IOException exception ) { support . shutdownNow ( ) ; } } ) ; channel . receiveMessage ( support . getReceiver ( ) ) ; return support ; } } ) ; channels . startClientConnetion ( ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } final Channel clientChannel = channels . getClientChannel ( ) ; final ManagementChannelHandler support = new ManagementChannelHandler ( clientChannel , channels . getExecutorService ( ) ) ; <START_BUG> final RemoteProxyController proxyController = RemoteProxyController . create ( support , PathAddress . pathAddress ( ) , HOST ) ; <END_BUG> clientChannel . addCloseHandler ( new org . jboss . remoting3 . CloseHandler < Channel > ( ) { @ Override public void handleClose ( Channel closed , IOException exception ) { support . shutdownNow ( ) ; } } ) ; clientChannel . receiveMessage ( support . getReceiver ( ) ) ; return proxyController ; } private abstract static class MockModelController implements ModelController { protected volatile ModelNode operation ; ModelNode getOperation ( ) { } @ Override public ModelControllerClient createClient ( Executor executor ) { } } private static class CommitProxyOperationControl implements ProxyOperationControl { final AtomicInteger txCompletionStatus = new AtomicInteger ( ( - 1 ) ) ; OperationTransaction tx ; @ Override public void operationPrepared ( OperationTransaction transaction , ModelNode result ) { } @ Override public void operationFailed ( ModelNode response ) { } @ Override public void operationCompleted ( ModelNode response ) { } } private static class TestFuture < T > extends AsyncFutureTask < T > { protected TestFuture ( ) { } void done ( T result ) { } } }

Fix:
final RemoteProxyController proxyController = RemoteProxyController . create ( support , PathAddress . pathAddress ( ) , HOST , false ) ;