fs.mkdirs(path);
for (int i = 0; i < 3; i++) {
fs.create(new Path(path, "newfile" + i));
assertTrue(fs.exists(new Path(path, "newfile" + i)));
}
PartialListingResponse res = (PartialListingResponse) method.invoke(this, path);
assertEquals(3, res.getListing().getFileStatusList().size());
int i = 0;
for (HdfsFileStatus file : res.getListing().getFileStatusList()) {
assertEquals("newfile" + i++, file.getLocalName());
}
fs.delete(path, true, true);
}
}