@Test
public void testSymlinkFileAlreadyExists() throws IOException {

  File file = new File(del, FILE);
  File link = new File(del, "_link");
  // Create a symbolic link
  // The operation should succeed
  int result1 =
      FileUtil.symLink(file.getAbsolutePath(), link.getAbsolutePath());
  Assert.assertEquals(0, result1);
  // Create the same symbolic link
  // The operation should fail and returns 1
  result1 = FileUtil.symLink(file.getAbsolutePath(), link.getAbsolutePath());
  Assert.assertEquals(1, result1);
}