@Test
public void testCachedResults() throws IOException {
setupCluster();
try {
// test blocks cache
CachedLocatedBlocks cachedBlocks = new CachedLocatedBlocks(conf, namesystem);
String file1 = "/dir/file1";
String file2 = "/dir/file2";
DFSTestUtil.createFile(fs, new Path(file1), 3, (short)1, 0L);
DFSTestUtil.createFile(fs, new Path(file2), 4, (short)1, 0L);
verifyCachedBlocksResult(cachedBlocks, namesystem, file1);