@Test
public void testPathExistsThrowsException() throws IOException {

  FileSystem mockFs = mock(FileSystem.class);
  Path invalidPath = new Path("/invalid/path");
  when(mockFs.exists(invalidPath)).thenThrow(new IOException("IO Excpt"));
  assertFalse(HdfsUtils.pathExists(mockFs, invalidPath));
}