// The following are test cases for listPaths which is a deprecated
// API. These tests shoudl go away when the API is removed.
// issue a listPaths on directory /test/mkdirs and verify that the
// size of the files inside it are valid
Path[] files = fs.listPaths(dir);
assertTrue(dir + " should have two files", files.length == 2);
for (int i = 0; i < files.length; i++) {
DfsPath dfspath = (DfsPath) files[i];
assertTrue(files[i] + " should be of size " + (blockSize/4),
blockSize/4 == dfspath.getContentsLength());