Buggy code:
@ RunWith ( HazelcastParallelClassRunner . class ) @ Category ( QuickTest . class ) public class ClientExecutorServiceSubmitTest { private static final int CLUSTER_SIZE = 3 ; private static HazelcastInstance server ; private static HazelcastInstance client ; @ BeforeClass public static void beforeClass ( ) { } @ AfterClass public static void afterClass ( ) { } @ Test ( expected = NullPointerException . class ) public void testSubmitCallableNullTask ( ) throws Exception { } @ Test public void testSubmitCallableToMember ( ) throws Exception { } @ Test public void testSubmitCallableToMembers ( ) throws Exception { } @ Test public void testSubmitCallable_withMemberSelector ( ) throws Exception { } @ Test public void testSubmitCallableToMembers_withMemberSelector ( ) throws Exception { } @ Test public void submitCallableToAllMembers ( ) throws Exception { } @ Test public void submitRunnableToMember_withExecutionCallback ( ) { } @ Test public void submitRunnableToMembers_withMultiExecutionCallback ( ) { } @ Test public void testSubmitCallableToMember_withExecutionCallback ( ) throws Exception { } @ Test public void submitCallableToMember_withMultiExecutionCallback ( ) throws Exception { } @ Test public void submitRunnable_withExecutionCallback ( ) { } @ Test public void submitRunnableToMembers_withExecutionCallback ( ) { } @ Test public void submitCallable_withExecutionCallback ( ) { } @ Test public void submitCallableToMembers_withExecutionCallback ( ) { } @ Test public void submitRunnableToAllMembers_withMultiExecutionCallback ( ) throws Exception { } @ Test public void submitCallableToAllMembers_withMultiExecutionCallback ( ) throws Exception { } @ Test public void submitCallableWithNullResultToAllMembers_withMultiExecutionCallback ( ) throws Exception { } @ Test public void submitRunnable ( ) { } @ Test public void testSubmitRunnable_WithResult ( ) throws InterruptedException , ExecutionException { } @ Test public void testSubmitCallable ( ) throws Exception { } @ Test public void testSubmitRunnable_withExecutionCallback ( ) throws Exception { } @ Test public void testSubmitCallable_withExecutionCallback ( ) throws Exception { } @ Test public void submitCallableToKeyOwner ( ) throws Exception { } @ Test public void submitRunnableToKeyOwner ( ) throws Exception { } @ Test public void submitCallableToKeyOwner_withExecutionCallback ( ) throws Exception { IExecutorService service = ClientExecutorServiceSubmitTest . client . getExecutorService ( randomString ( ) ) ; String msg = randomString ( ) ; Callable < String > callable = new AppendCallable ( msg ) ; final CountDownLatch responseLatch = new CountDownLatch ( 1 ) ; final AtomicReference < String > result = new AtomicReference < String > ( ) ; service . submitToKeyOwner ( callable , "key" , new com . hazelcast . core . ExecutionCallback < String > ( ) { public void onResponse ( String response ) { result . set ( response ) ; responseLatch . countDown ( ) ; } public void onFailure ( Throwable t ) { } } ) ; <START_BUG> assertOpenEventually ( "responseLatch" , responseLatch , 5 ) ; <END_BUG> assertEquals ( ( msg + ( AppendCallable . APPENDAGE ) ) , result . get ( ) ) ; } @ Test public void submitRunnablePartitionAware ( ) throws Exception { } @ Test public void submitRunnablePartitionAware_withResult ( ) throws Exception { } @ Test public void submitRunnablePartitionAware_withExecutionCallback ( ) throws Exception { } @ Test public void submitCallablePartitionAware ( ) throws Exception { } @ Test public void submitCallablePartitionAware_WithExecutionCallback ( ) throws Exception { } No newline ; at end ; of file ; }

Fix:
assertOpenEventually ( "responseLatch" , responseLatch ) ;