public void resetSingleton(){
  root=null;
  tmpFileCounter.set(0);
  accessedFiles.clear();
  shouldAllThrowIOException=false;
  classesThatShouldThrowIOException.clear();
synchronized (leakingResources) {
    for (    LeakingResource resource : leakingResources) {
      try {
        resource.release();
      }
 catch (      Exception e) {
        logger.warn("Failed to release resource: " + e.getMessage(),e);
      }
    }
    leakingResources.clear();
  }
}

public void resetSingleton ( ) { root = null ; tmpFileCounter . set ( 0 ) ; accessedFiles . clear ( ) ; shouldAllThrowIOException = false ; classesThatShouldThrowIOException . clear ( ) ; synchronized ( leakingResources ) { for ( LeakingResource resource : leakingResources ) { try { resource . release ( ) ; } catch ( Exception e ) { logger . warn ( "Failed to release resource: " + e . getMessage ( ) , e ) ; } } leakingResources . clear ( ) ; } }
reset the internal state of this singleton
