### Question:
FSDRUtils { public static boolean isHCFS(Path filePath) throws FalconException { if (filePath == null) { throw new FalconException("filePath cannot be empty"); } String scheme; try { FileSystem f = FileSystem.get(filePath.toUri(), getDefaultConf()); scheme = f.getScheme(); if (StringUtils.isBlank(scheme)) { throw new FalconException("Cannot get valid scheme for " + filePath); } } catch (IOException e) { throw new FalconException(e); } return HDFS_SCHEME_PREFIXES.contains(scheme.toLowerCase().trim()) ? false : true; } private  FSDRUtils(); static Configuration getDefaultConf(); static void setDefaultConf(Configuration conf); static boolean isHCFS(Path filePath);  }### Answer:
@Test(expectedExceptions = FalconException.class, expectedExceptionsMessageRegExp = "filePath cannot be empty") public void testIsHCFSEmptyPath() throws Exception { FSDRUtils.isHCFS(null); }
@Test public void testIsHCFS() throws Exception { boolean isHCFSPath = FSDRUtils.isHCFS(new Path("/apps/dr")); Assert.assertFalse(isHCFSPath); isHCFSPath = FSDRUtils.isHCFS(new Path("hdfs: Assert.assertFalse(isHCFSPath); isHCFSPath = FSDRUtils.isHCFS(new Path("hftp: Assert.assertFalse(isHCFSPath); isHCFSPath = FSDRUtils.isHCFS(new Path("s3n: Assert.assertTrue(isHCFSPath); }