HdfFile implements Group, AutoCloseable { @Override public File getFile() { return file; } 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 testGettingTheFileBackFromAGroup() { File file = new File(testFileUrl); try (HdfFile hdfFile = new HdfFile(file)) { for (Node node : hdfFile) { assertThat(node.getFile(), is(Matchers.sameInstance(file))); } } }