}
};
for (int i = 0; i < k; i++) {
final IExecutorService service = instances[i].getExecutorService("testSubmitToAllMembersRunnable");
final String script = "hazelcast.getAtomicLong('testSubmitToAllMembersRunnable').incrementAndGet();";
service.submitToAllMembers(new ScriptRunnable(script, null), callback);
}
assertTrue(latch.await(30, TimeUnit.SECONDS));
final IAtomicLong result = instances[0].getAtomicLong("testSubmitToAllMembersRunnable");
assertEquals(k * k, result.get());
assertEquals(k * k, count.get());