// list length should be equal to the number of blocks we inserted
LOG.info("Checking list length...");
assertEquals("Length should be MEX_BLOCK", MAX_BLOCKS, head.listCount(dd));
DatanodeIndex ind = new DatanodeIndex();
ind.headIndex = head.findDatanode(dd);
LOG.info("Moving each block to the head of the list...");
for (int i = 0; i < MAX_BLOCKS; i++) {
ind.currentIndex = blockInfoList.get(i).findDatanode(dd);