}
private void verifyFileStatus(String file, NameNode namenode,
FastCopy fastCopy) throws Exception {
LOG.info("Verifying for file : " + file);
FastCopyFileStatus fstat = fastCopy.getFileStatus(file);
assertNotNull(fstat);
int totalBlocks = namenode.getBlockLocations(file, 0,
Long.MAX_VALUE).locatedBlockCount();
assertEquals(totalBlocks, fstat.getTotalBlocks());
assertEquals(fstat.getTotalBlocks(), fstat.getBlocksDone());
assertEquals(FILESIZE / BLOCK_SIZE, totalBlocks);
}