Converted groovy maps tests  to java