public void testTakeWait2() throws Exception{
String dir = "/testTakeWait2";
final String testString = "Hello World";
final int num_clients = 1;
final ZooKeeper clients[] = new ZooKeeper[num_clients];
final DistributedQueue queueHandles[] = new DistributedQueue[num_clients];
for(int i=0; i < clients.length; i++){
clients[i] = createClient();
queueHandles[i] = new DistributedQueue(clients[i], dir, null);
}
int num_attempts =2;
for(int i=0; i< num_attempts; i++){
final byte[] takeResult[] = new byte[1][];
final String threadTestString = testString + i;