question: 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 ( ) ; } }
target:  Reset the internal state of this singleton