assertEquals(getNodeCount(), protocol.getShardNodes(shard.getName()).size());
assertEquals(1, shard.getMetaDataMap().size());
}
// undeploy
IndexUndeployOperation undeployOperation = new IndexUndeployOperation(INDEX_NAME);
protocol.addMasterOperation(undeployOperation);
TestUtil.waitUntilShardsUndeployed(protocol, indexMD);
assertEquals(0, protocol.getIndices().size());
assertEquals(null, protocol.getIndexMD(INDEX_NAME));