### Question:
FileSystemUtil { public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); }  static void ensureLocationExists(
      DatasetDescriptor descriptor, Configuration conf); static Schema schema(String name, FileSystem fs, Path location); static PartitionStrategy strategy(FileSystem fs, Path location); static Format format(FileSystem fs, Path location); static Collection<DatasetDescriptor> findPotentialDatasets(
      FileSystem fs, Path path); static boolean supportsRename(URI fsUri, Configuration conf);  }### Answer:
@Test public void testSupportsRenameConfigNotSet() { Assert.assertFalse("Should default to false for S3A", FileSystemUtil.supportsRename(URI.create("s3a: Assert.assertFalse("Should default to false for S3N", FileSystemUtil.supportsRename(URI.create("s3n: Assert.assertTrue("Should default to true for HDFS", FileSystemUtil.supportsRename(URI.create("hdfs: Assert.assertTrue("Should default to true for FILE", FileSystemUtil.supportsRename(URI.create("file: }
@Test public void testSupportsRenameConfigFalse() { Configuration conf = new Configuration(); conf.setBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, false); Assert.assertFalse("Should override via config to false for HDFS", FileSystemUtil.supportsRename(URI.create("hdfs: Assert.assertFalse("Should override via config to false for FILE", FileSystemUtil.supportsRename(URI.create("file: }
@Test public void testSupportsRenameConfigTrue() { Configuration conf = new Configuration(); conf.setBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, true); Assert.assertTrue("Should override via config to true for S3A", FileSystemUtil.supportsRename(URI.create("s3a: Assert.assertTrue("Should override via config true for S3N", FileSystemUtil.supportsRename(URI.create("s3n: }