### Question:
HBaseFileSystem { public HBaseFileScanner scan() { HBaseFileScanner hrs = null; try { ResultScanner rs = HBaseFileHelper.scan(); hrs = new HBaseFileScanner(rs); } catch (IOException ex) { log.error("Fail to scan.", ex); } return hrs; } private  HBaseFileSystem(); synchronized static HBaseFileSystem instance(); HBaseFileScanner scan(); long count();  }### Answer:
@Test public void testNext() { HBaseFileScanner scanner = hbfs.scan(); HBaseFile hbFile; while ((hbFile = scanner.next()) != null) { log.info(hbFile.toString()); } }