By accident I came across this interesting class. I suggest you to read its source code, its very unusual. But I struggled to understand the purpose of this class. The reason for its existence is even more interesting.
It was after a while I have once again engaged in a discussion about dependency injection in spring and how to handle it in tests. This is not the first time so I am writing my thoughts down to point here in any further conversations.