@Test
public void testDeletedDirectory()
  throws Exception
{

  final Logger log = Logger.getLogger("TestTrailFilePositionSetter.testDeletedDirectory");
  log.info("starting");
  File dir = createTempDir();
  TrailFilePositionSetter posSetter = new TrailFilePositionSetter(dir.getAbsolutePath(), TRAIL_FILENAME_PREFIX);
  GGXMLTrailTransactionFinder finder = new GGXMLTrailTransactionFinder();
  // Now delete the directory to make the locateFilePosition() see null for listFiles() call.
  boolean deleted = dir.delete();
  Assert.assertTrue(deleted, "Deleted the trail directory successfully");
  FilePositionResult res = posSetter.locateFilePosition(100,finder);
  Assert.assertEquals(res.getStatus(), Status.NO_TXNS_FOUND, "File Position Result Status");
  log.info(DONE_STRING);
}