@Override
    public boolean exists(Path path) {
      return true;
    }
a mock fs which throws exception for first 3 times, and then process the call (returns the
excepted result).
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegionFileSystem.java