fixup test case warnings
hide the pattern
supress rawtypes warning
monitor object needs to be final
Correct implementation of equals & hashcode