.getIntValue(), null));
for (int i = 0; i < 25; i++) {
final String indexName = "index" + i;
IIndexDeployFuture deployFuture = deployClient.addIndex(indexName, INDEX_FILE.getAbsolutePath(), 1);
zkClient.getEventLock().lock();
zkClient.process(event);
zkClient.getEventLock().unlock();
IndexState indexState = deployFuture.joinDeployment();
assertEquals("" + deployClient.getIndexMetaData(indexName).getDeployError(), IndexState.DEPLOYED, indexState);
if (indexState == IndexState.ERROR) {