HdfFile implements Group, AutoCloseable { @Override public Iterator<Node> iterator() { return rootGroup.iterator(); } HdfFile(Path path);  HdfFile(URI uri);  HdfFile(File hdfFile); long getUserBlockSize(); ByteBuffer getUserBlockBuffer(); @Override void close(); long size(); @Override boolean isGroup(); @Override Map<String, Node> getChildren(); @Override String getName(); @Override String getPath(); @Override Map<String, Attribute> getAttributes(); @Override Attribute getAttribute(String name); @Override String toString(); @Override NodeType getType(); @Override Group getParent(); @Override File getFile(); @Override long getAddress(); @Override Iterator<Node> iterator(); @Override Node getChild(String name); @Override Node getByPath(String path); @Override Dataset getDatasetByPath(String path); @Override HdfFile getHdfFile(); void addExternalFile(HdfFile hdfFile); @Override boolean isLink(); @Override boolean isAttributeCreationOrderTracked(); @Override boolean isLinkCreationOrderTracked(); HdfFileChannel getHdfChannel();  }
@Test void testIteratingFile() { try (HdfFile hdfFile = new HdfFile(new File(testFileUrl))) { final Iterator<Node> iterator = hdfFile.iterator(); assertThat(iterator.hasNext(), is(true)); } }