### Question:
HBaseFile { HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); } HBaseFile(String identifier); void delete(); boolean exists(); boolean integrity(); String getIdentifier(); long getSize(); String getDesc(); long getCreateTime(); @Override String toString();  }### Answer:
@Test public void testHBaseFile() throws IOException { final File uploadFolder = new File(uploadPath); if (!uploadFolder.isDirectory()) { fail("please enter a correct dir to upload!"); } Collection<File> uploadFiles = FileUtils.listFiles(uploadFolder, null, false); if (uploadFiles == null || uploadFiles.isEmpty()) { fail("please enter a correct dir which has files."); } for (File uploadFile : uploadFiles) { if (uploadFile.isFile()) testAHBaseFile(uploadFile); } }