Initially it was HashMap. But I've changed it to Hashtable as very often the test was hanging in destroy method while iterating through it. I had an impression that it was accessed by several threads simultaneously. I hadn't time to go deeper into code to understand whether the destroy method is accessed simultaneously by several threads or no. So I just changed it to Hashtable for reliable run of my tests and for saving some time for me.