@Test
public void testContentOfHdfsFileThrowsException() throws IOException {

  FileSystem mockFs = mock(FileSystem.class);
  Path filePath = new Path(Constants.TONY_CORE_SRC + "test/resources/empty.txt");
  when(mockFs.exists(filePath)).thenThrow(new IOException("IO Excpt"));
  assertEquals(HdfsUtils.contentOfHdfsFile(fs, filePath), "");
}