I also tried this. creating a clone and then removing all elements from the original map. then adding non duplicate key value sets. which worked well when i ran it but again, 1. it won't verify and 2. the removeItemFromMapByValue method is not working for me. I tried debugging with System. out and discovered that my removeItemFromMapByValue is not doing anything. I must be doing something wrong but cannot figure out what.