I\'d like to use hamcrest to assert that two maps are equal, i.e. they have the same set of keys pointing to the same values.
My current best guess is:
a
Hamcrest now has a Matcher for size collection.
Matcher
org.hamcrest.collection.IsCollectionWithSize
A quite simple way is to use a utility method from Guava's com.google.common.collect.Maps class.
assertThat(Maps.difference(map1,map2).areEqual(),is(true));