### Question:
GridFile extends File { @Override public URI toURI() { throw new UnsupportedOperationException("Not implemented"); } GridFile(String pathname, Cache<String, Metadata> metadataCache, int chunkSize, GridFilesystem fs);   GridFile(String parent, String child, Cache<String, Metadata> metadataCache, int chunkSize, GridFilesystem fs);   GridFile(File parent, String child, Cache<String, Metadata> metadataCache, int chunkSize, GridFilesystem fs); @Override String getName(); @Override String getPath(); @Override String getAbsolutePath(); @Override File getAbsoluteFile(); @Override String getCanonicalPath(); @Override File getCanonicalFile(); @Override boolean isAbsolute(); @Override boolean renameTo(File dest); @Override void deleteOnExit(); @Override long length(); int getChunkSize(); @Override boolean createNewFile(); @Override boolean delete(); @Override boolean mkdir(); @Override boolean mkdirs(); @Override boolean exists(); @Override String getParent(); @Override File getParentFile(); @Override long lastModified(); @Override boolean setLastModified(long time); @Override String[] list(); @Override String[] list(FilenameFilter filter); @Override File[] listFiles(); @Override File[] listFiles(FilenameFilter filter); @Override File[] listFiles(FileFilter filter); @Override boolean isDirectory(); @Override boolean isFile(); @Override boolean equals(Object obj); @Override boolean canRead(); @Override boolean canWrite(); @Override boolean isHidden(); @Override boolean canExecute(); @Override int compareTo(File file); @Override int hashCode(); @Override String toString(); @Override URL toURL(); @Override URI toURI(); @Override boolean setReadOnly(); @Override boolean setWritable(boolean writable, boolean ownerOnly); @Override boolean setWritable(boolean writable); @Override boolean setReadable(boolean readable, boolean ownerOnly); @Override boolean setReadable(boolean readable); @Override boolean setExecutable(boolean executable, boolean ownerOnly); @Override boolean setExecutable(boolean executable); @Override long getTotalSpace(); @Override long getFreeSpace(); @Override long getUsableSpace();  }### Answer:
@Test(expectedExceptions = UnsupportedOperationException.class) public void testToURI() { fs.getFile("nonsuch.txt").toURI(); }