THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Literally 100% of the Singleton locking we're talking about is taken from this interface. It's safe to imagine that under the covers the Singleton Container is creating has an instance of ReadWriteLock which it will use uses to enforce the locking for all the Singleton bean's methods. Essentially:
...