final HazelcastInstance instance = nodeFactory.newHazelcastInstance(config);
final AtomicInteger count = new AtomicInteger(0);
final int size = 50;
int k = 0;
final HazelcastInstance keyOwner = nodeFactory.newHazelcastInstance(config);
<BUG>while (instance.getPartitionService().getPartition(k++).equals(keyOwner.getCluster().getLocalMember())) ;
final ILock lock = instance.getLock(k);</BUG>
final ICondition condition = lock.newCondition(name);
final CountDownLatch awaitLatch = new CountDownLatch(size);
final CountDownLatch finalLatch = new CountDownLatch(size);

final HazelcastInstance instance = nodeFactory.newHazelcastInstance(config);
final AtomicInteger count = new AtomicInteger(0);
final int size = 50;
int k = 0;
final HazelcastInstance keyOwner = nodeFactory.newHazelcastInstance(config);
while (keyOwner.getCluster().getLocalMember().equals(instance.getPartitionService().getPartition(k++).getOwner()))
;
final ILock lock = instance.getLock(k);
final ICondition condition = lock.newCondition(name);
final CountDownLatch awaitLatch = new CountDownLatch(size);
final CountDownLatch finalLatch = new CountDownLatch(size);
