assertEquals(totalReal, totalNN);
// now check the number of under-replicated blocks
FSNamesystem fsn = FSNamesystem.getFSNamesystem();
// force update of all the metric counts by calling computeDatanodeWork
fsn.computeDatanodeWork();
// get all the counts
long underRepl = fsn.getUnderReplicatedBlocks();
long pendRepl = fsn.getPendingReplicationBlocks();
long totalRepl = underRepl + pendRepl;
System.out.println("underreplicated after = "+ underRepl +