@Test (timeout = 30000)
public void testSymlinkDelete() throws Exception {

  File file = new File(del, FILE);
  file.createNewFile();
  File link = new File(del, "_link");
  // create the symlink
  FileUtil.symLink(file.getAbsolutePath(), link.getAbsolutePath());
  Assert.assertTrue(file.exists());
  Assert.assertTrue(link.exists());
  // make sure that deleting a symlink works properly
  Assert.assertTrue(link.delete());
  Assert.assertFalse(link.exists());
  Assert.assertTrue(file.exists());
}